From a72e08169b00b0fd8e1966e556c5ce7f72a170cc Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 23 Sep 2019 14:06:10 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E5=90=8E?= =?UTF-8?q?=E5=8F=B0=E7=99=BB=E5=BD=95=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Login.php | 5 ----- application/admin/view/login/index.html | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/application/admin/controller/Login.php b/application/admin/controller/Login.php index 8a8e4c429..fa25cbb37 100644 --- a/application/admin/controller/Login.php +++ b/application/admin/controller/Login.php @@ -39,17 +39,12 @@ class Login extends Controller public function index() { if (Request::isGet()) { - // 登录状态检查 if (NodeService::islogin()) { - // 已经登录,跳转到后面首页 $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; - // 创建登录安全通道 if (!($this->loginskey = session('loginskey'))) session('loginskey', $this->loginskey = uniqid()); - // 显示后台登录页面 $this->title = '系统登录'; $this->fetch(); } diff --git a/application/admin/view/login/index.html b/application/admin/view/login/index.html index 389793a91..c8461b4cd 100644 --- a/application/admin/view/login/index.html +++ b/application/admin/view/login/index.html @@ -4,7 +4,7 @@
{:sysconf('app_name')}{:sysconf('app_version')} - {notempty name='devMode'} + {notempty name='devmode'} Fork me on Gitee