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
c1e65acc2e
commit
4dd297921c
@ -43,7 +43,7 @@ class Login extends Controller
|
||||
$this->redirect('@admin');
|
||||
} else {
|
||||
$this->domain = Request::host(true);
|
||||
$this->devmode = in_array($this->domain, ['127.0.0.1', 'localhost']) or stripos($this->domain, 'thinkadmin.top') <> false;
|
||||
$this->devmode = in_array($this->domain, ['127.0.0.1', 'localhost']) or stripos($this->domain, 'thinkadmin.top') !== false;
|
||||
if (!($this->loginskey = session('loginskey'))) session('loginskey', $this->loginskey = uniqid());
|
||||
$this->title = '系统登录';
|
||||
$this->fetch();
|
||||
|
Loading…
x
Reference in New Issue
Block a user