fix: login

This commit is contained in:
耗子
2023-07-27 01:04:29 +08:00
parent 0c6354fc6e
commit ff1f2569dd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
}