From 411fff6248e982200fe7c1c416e2e022b138c31b Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 16 Dec 2020 17:29:29 +0800 Subject: [PATCH 1/2] * finish task #8681. --- module/user/js/login.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/user/js/login.js b/module/user/js/login.js index ecfd39e0fa..5f2a545123 100644 --- a/module/user/js/login.js +++ b/module/user/js/login.js @@ -66,6 +66,12 @@ $(document).ready(function() }); }); +/** + * Show notice for one click package use weak password. + * + * @access public + * @return void + */ function showNotice() { if(typeof(process4Safe) == 'string') bootbox.alert(process4Safe) From 16c921432d8f84e45fefe87a515c44045552762d Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 16 Dec 2020 17:34:05 +0800 Subject: [PATCH 2/2] * finish task #8682. --- module/user/control.php | 14 +++++++------- module/user/view/login.html.php | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/module/user/control.php b/module/user/control.php index b3db9774ff..c12315cafc 100644 --- a/module/user/control.php +++ b/module/user/control.php @@ -819,13 +819,13 @@ class user extends control } $this->loadModel('misc'); - $this->view->noGDLib = sprintf($this->lang->misc->noGDLib, common::getSysURL() . $this->config->webRoot, '', false, true); - $this->view->title = $this->lang->user->login; - $this->view->referer = $this->referer; - $this->view->s = zget($this->config->global, 'sn', ''); - $this->view->keepLogin = $this->cookie->keepLogin ? $this->cookie->keepLogin : 'off'; - $this->view->rand = $this->user->updateSessionRandom(); - $this->view->weakSites = $this->misc->checkOneClickPackage(); + $this->view->noGDLib = sprintf($this->lang->misc->noGDLib, common::getSysURL() . $this->config->webRoot, '', false, true); + $this->view->title = $this->lang->user->login; + $this->view->referer = $this->referer; + $this->view->s = zget($this->config->global, 'sn', ''); + $this->view->keepLogin = $this->cookie->keepLogin ? $this->cookie->keepLogin : 'off'; + $this->view->rand = $this->user->updateSessionRandom(); + $this->view->unsafeSites = $this->misc->checkOneClickPackage(); $this->display(); } } diff --git a/module/user/view/login.html.php b/module/user/view/login.html.php index 277f3c2849..1e7689a9af 100644 --- a/module/user/view/login.html.php +++ b/module/user/view/login.html.php @@ -81,7 +81,7 @@ if(empty($config->notMd5Pwd))js::import($jsRoot . 'md5.js');
- + checkVersion):?> @@ -93,12 +93,12 @@ if(empty($config->notMd5Pwd))js::import($jsRoot . 'md5.js');
$site) + foreach($unsafeSites as $webRoot => $site) { $path = $site['path']; if(strpos($path, 'xampp') !== false) $isXampp = true;