This commit is contained in:
2019-05-22 00:13:23 +00:00
parent 4ef6b98658
commit b8a32edc29
2 changed files with 14 additions and 10 deletions

View File

@@ -71,7 +71,7 @@ namespace AyaNova.Api.Controllers
{
return StatusCode(503, new ApiErrorResponse(ApiErrorCode.API_CLOSED, null, serverState.Reason));
}
int nFailedAuthDelay = 10000;
int nFailedAuthDelay = 3000;//should be just long enough to make brute force a hassle but short enough to not annoy people who just mistyped their creds to login
#if (DEBUG)
@@ -116,6 +116,7 @@ namespace AyaNova.Api.Controllers
{ "exp", exp.ToUnixTimeSeconds().ToString() },//in payload exp must be in unix epoch time per standard
{ "iss", Issuer },
{ "id", "1" },
{ "name","Manager Account - TESTING"},
{ "ayanova/roles", "0" }
};
string TestToken = Jose.JWT.Encode(payload, secretKey, Algorithm);
@@ -197,6 +198,7 @@ namespace AyaNova.Api.Controllers
{ "exp", exp.ToUnixTimeSeconds().ToString() },//in payload exp must be in unix epoch time per standard
{ "iss", "ayanova.com" },
{ "id", u.Id.ToString() },
{ "name", u.Name},
{ "ayanova/roles", ((int)u.Roles).ToString() }
};