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/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) 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');