Skip to content

Commit

Permalink
Fix: Handle temporary authentication failures
Browse files Browse the repository at this point in the history
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 <c@roessner.co>
  • Loading branch information
Christian Roessner committed Sep 30, 2024
1 parent 5cf031d commit 27540d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/core/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
}
Expand Down

0 comments on commit 27540d0

Please sign in to comment.