* adjust for check password.

This commit is contained in:
wangyidong
2015-05-20 13:13:42 +08:00
parent 55c7228a35
commit 0cfdc19e15
16 changed files with 82 additions and 56 deletions
+1 -1
View File
@@ -657,7 +657,7 @@ class user extends control
if($this->post->keepLogin) $this->user->keepLogin($user);
/* Check password. */
if(isset($this->config->safe->mode) and $this->user->pwdLevel($password) < $this->config->safe->mode) echo js::alert($this->lang->user->weakPwd);
if(isset($this->config->safe->mode) and $this->user->computePasswordStrength($password) < $this->config->safe->mode) echo js::alert($this->lang->user->weakPwd);
/* Go to the referer. */
if($this->post->referer and