mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update Login.php
This commit is contained in:
parent
5174883417
commit
ed4d91d87d
@ -76,6 +76,7 @@ class Login extends Controller
|
|||||||
if (empty($user['status'])) {
|
if (empty($user['status'])) {
|
||||||
$this->error('账号已经被禁用,请联系管理员!');
|
$this->error('账号已经被禁用,请联系管理员!');
|
||||||
}
|
}
|
||||||
|
$this->app->session->set('user', $user);
|
||||||
$this->app->session->delete("login_input_session_error");
|
$this->app->session->delete("login_input_session_error");
|
||||||
$this->app->db->name('SystemUser')->where(['id' => $user['id']])->update([
|
$this->app->db->name('SystemUser')->where(['id' => $user['id']])->update([
|
||||||
'login_ip' => $this->app->request->ip(),
|
'login_ip' => $this->app->request->ip(),
|
||||||
@ -83,7 +84,6 @@ class Login extends Controller
|
|||||||
'login_num' => $this->app->db->raw('login_num+1'),
|
'login_num' => $this->app->db->raw('login_num+1'),
|
||||||
]);
|
]);
|
||||||
sysoplog('用户登录', '登录系统后台成功');
|
sysoplog('用户登录', '登录系统后台成功');
|
||||||
$this->app->session->set('user', $user);
|
|
||||||
$this->success('登录成功', url('@admin')->build());
|
$this->success('登录成功', url('@admin')->build());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user