From 5ef6aeb78629a6813e15caf4f594c49fabb41070 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 2 Mar 2022 23:15:44 +0000 Subject: [PATCH] --- server/AyaNova/Controllers/AuthController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/AyaNova/Controllers/AuthController.cs b/server/AyaNova/Controllers/AuthController.cs index b9b5da43..caf2b6ba 100644 --- a/server/AyaNova/Controllers/AuthController.cs +++ b/server/AyaNova/Controllers/AuthController.cs @@ -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))