From 4789981c9506714c810cd942189025170c4eefd9 Mon Sep 17 00:00:00 2001 From: uubulb Date: Tue, 31 Dec 2024 21:31:18 +0800 Subject: [PATCH] update error --- cmd/dashboard/controller/jwt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/dashboard/controller/jwt.go b/cmd/dashboard/controller/jwt.go index 2adf757..adbcf1d 100644 --- a/cmd/dashboard/controller/jwt.go +++ b/cmd/dashboard/controller/jwt.go @@ -99,7 +99,7 @@ func authenticator() func(c *gin.Context) (interface{}, error) { if user.RejectPassword { model.BlockIP(singleton.DB, realip, model.WAFBlockReasonTypeLoginFail, int64(user.ID)) - return nil, jwt.ErrForbidden + return nil, jwt.ErrFailedAuthentication } if err := bcrypt.CompareHashAndPassword([]byte(user.Password), []byte(loginVals.Password)); err != nil {