2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 17:17:13 +08:00

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

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
}

View File

@@ -8,6 +8,6 @@ func init() {
config := facades.Config()
config.Add("panel", map[string]any{
"name": "耗子面板",
"version": "v2.0.20",
"version": "v2.0.21",
})
}