This commit is contained in:
@@ -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() }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user