mirror of
https://github.com/tnb-labs/panel.git
synced 2026-10-29 17:52:45 +08:00
fix: login
This commit is contained in:
@@ -39,7 +39,7 @@ func (r *UserController) Login(ctx http.Context) {
|
||||
}
|
||||
|
||||
if user.ID == 0 || !facades.Hash().Check(loginRequest.Password, user.Password) {
|
||||
Error(ctx, http.StatusUnauthorized, "用户名或密码错误")
|
||||
Error(ctx, http.StatusForbidden, "用户名或密码错误")
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user