diff --git a/application/admin/controller/Index.php b/application/admin/controller/Index.php index f70d507..6f222d0 100644 --- a/application/admin/controller/Index.php +++ b/application/admin/controller/Index.php @@ -76,12 +76,12 @@ class Index extends Backend $result = $this->auth->login($username, $password, $keeplogin ? 86400 : 0); if ($result === true) { - $this->success(__('Login success'), $url); + $this->success(__('Login successful'), $url); return; } else { - $this->success(__('Username or password is incorrect'), $url); + $this->error(__('Username or password is incorrect'), $url); } return; } diff --git a/application/admin/lang/zh-cn.php b/application/admin/lang/zh-cn.php index af8992e..61d6583 100644 --- a/application/admin/lang/zh-cn.php +++ b/application/admin/lang/zh-cn.php @@ -107,6 +107,7 @@ return [ 'Username or password is incorrect' => '用户名或密码不正确', 'Username is incorrect' => '用户名不正确', 'Password is incorrect' => '密码不正确', + 'Login successful' => '登录成功!', 'Verification code is incorrect' => '验证码不正确', 'An unexpected error occurred' => '发生了一个意外错误,程序猿正在紧急处理中', 'This page will be re-directed in %s seconds' => '页面将在 %s 秒后自动跳转',