Update Login.php

This commit is contained in:
Anyon 2019-09-23 14:54:54 +08:00
parent c1e65acc2e
commit 4dd297921c

View File

@ -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();