mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 17:17:13 +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
|
||||
}
|
||||
|
||||
|
||||
@@ -8,6 +8,6 @@ func init() {
|
||||
config := facades.Config()
|
||||
config.Add("panel", map[string]any{
|
||||
"name": "耗子面板",
|
||||
"version": "v2.0.20",
|
||||
"version": "v2.0.21",
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user