From 27540d042ec620f7fa191168c6dbefd541da33a1 Mon Sep 17 00:00:00 2001 From: Christian Roessner Date: Mon, 30 Sep 2024 11:42:01 +0200 Subject: [PATCH] Fix: Handle temporary authentication failures Added a call to `authTempFail` in the authentication switch case to manage temporary failures. This ensures the system correctly handles and logs these specific failure scenarios. Signed-off-by: Christian Roessner --- server/core/rest.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/core/rest.go b/server/core/rest.go index 95e8f444..d2725e46 100644 --- a/server/core/rest.go +++ b/server/core/rest.go @@ -117,6 +117,7 @@ func (a *AuthState) generic(ctx *gin.Context) { case global.AuthResultOK: case global.AuthResultFail: case global.AuthResultTempFail: + a.authTempFail(ctx, global.TempFailDefault) case global.AuthResultEmptyUsername: case global.AuthResultEmptyPassword: }