* finish task #6208.

This commit is contained in:
wangyidong
2019-08-08 13:12:49 +08:00
parent 2fbe7943f3
commit 321b27c81b
5 changed files with 33 additions and 40 deletions
-6
View File
@@ -61,12 +61,6 @@ class ssoModel extends model
$user = $this->dao->select('*')->from(TABLE_USER)->where('account')->eq($data->account)->fetch();
if($user) die(js::alert($this->lang->sso->bindHasAccount));
if(isset($this->config->safe->mode) and $this->user->computePasswordStrength($data->password1) < $this->config->safe->mode)
{
dao::$errors['password1'][] = $this->lang->user->weakPassword;
return false;
}
$user = new stdclass();
$user->account = $data->account;
$user->password = md5($data->password1);