From 138ddbb2d3fcbcda680a1e24d82c74d5406f7852 Mon Sep 17 00:00:00 2001 From: Karson Date: Thu, 27 Apr 2017 12:12:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=80=E5=A4=84=E5=90=8E?= =?UTF-8?q?=E5=8F=B0=E8=AF=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Index.php | 4 ++-- application/admin/lang/zh-cn.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/application/admin/controller/Index.php b/application/admin/controller/Index.php index f70d5076..6f222d0e 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 af8992e7..61d65839 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 秒后自动跳转',