|
@@ -24,6 +24,7 @@ class User extends StoreUserModel
|
|
|
public function login($data)
|
|
public function login($data)
|
|
|
{
|
|
{
|
|
|
// 验证用户名密码是否正确
|
|
// 验证用户名密码是否正确
|
|
|
|
|
+
|
|
|
if (!$user = $this->getLoginUser($data['user_name'], $data['password'])) {
|
|
if (!$user = $this->getLoginUser($data['user_name'], $data['password'])) {
|
|
|
$this->error = '登录失败, 用户名或密码错误';
|
|
$this->error = '登录失败, 用户名或密码错误';
|
|
|
return false;
|
|
return false;
|