|
@@ -70,7 +70,6 @@ class User extends Frontend
|
|
|
$this->success(__('You\'ve logged in, do not login again'), $url ? $url : url('user/index'));
|
|
|
}
|
|
|
if ($this->request->isPost()) {
|
|
|
- $this->error('登录已禁用');
|
|
|
$account = $this->request->post('account');
|
|
|
$password = $this->request->post('password');
|
|
|
$keeplogin = (int)$this->request->post('keeplogin');
|
|
@@ -98,7 +97,7 @@ class User extends Frontend
|
|
|
$this->error(__($validate->getError()), null, ['token' => $this->request->token()]);
|
|
|
return false;
|
|
|
}
|
|
|
- if ($this->auth->login($account, $password)) {
|
|
|
+ if ($this->auth->login($account, $password,['type'=>1])) {
|
|
|
$this->success(__('Logged in successful'), $url ? $url : url('user/index'));
|
|
|
} else {
|
|
|
$this->error($this->auth->getError(), null, ['token' => $this->request->token()]);
|