This commit is contained in:
2020-04-21 18:54:56 +00:00
parent 8c19e087e2
commit 4b4f530914
3 changed files with 38 additions and 24 deletions

View File

@@ -177,16 +177,6 @@ namespace AyaNova.Api.Controllers
}
// //If the user is inactive they may not login
// if (!u.Active)
// {
// //This is leaking information, instead just act like bad creds
// //return StatusCode(401, new ApiErrorResponse(ApiErrorCode.NOT_AUTHORIZED, null, "User deactivated"));
// return StatusCode(401, new ApiErrorResponse(ApiErrorCode.AUTHENTICATION_FAILED));
// }
//build the key (JWT set in startup.cs)
byte[] secretKey = System.Text.Encoding.ASCII.GetBytes(ServerBootConfig.AYANOVA_JWT_SECRET);