This commit is contained in:
2022-03-02 23:15:44 +00:00
parent 10d779fe43
commit 5ef6aeb786

View File

@@ -74,7 +74,7 @@ namespace AyaNova.Api.Controllers
if (Core.License.LicenseConsentRequired)
{
await Task.Delay(AyaNova.Util.ServerBootConfig.FAILED_AUTH_DELAY);
return StatusCode(401, new ApiErrorResponse(ApiErrorCode.AUTHENTICATION_FAILED, "generalerror", "License agreement consent required"));
return StatusCode(451, new ApiErrorResponse(ApiErrorCode.AUTHENTICATION_FAILED, "generalerror", "License agreement consent required"));
}
if (string.IsNullOrWhiteSpace(creds.Login) || string.IsNullOrWhiteSpace(creds.Password))