From b4b41b05cb04568a3b0b152ffca5e4402d1ab9cb Mon Sep 17 00:00:00 2001 From: liumengyi Date: Tue, 12 Jul 2022 17:09:48 +0800 Subject: [PATCH] * Finish task #60478. --- module/user/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/user/model.php b/module/user/model.php index 77e2d0c486..c1ee7123fc 100644 --- a/module/user/model.php +++ b/module/user/model.php @@ -839,7 +839,7 @@ class userModel extends model if($this->post->password1 != $this->post->password2) dao::$errors['password'][] = $this->lang->error->passwordsame; if(!validater::checkReg($this->post->password1, '|(.){6,}|')) dao::$errors['password'][] = $this->lang->error->passwordrule; - if(isset($this->config->safe->mode) and ($this->post->passwordStrength < $this->config->safe->mode)) dao::$errors['password1'][] = $this->lang->user->weakPassword; + if(isset($this->config->safe->mode) and ($this->post->passwordStrength < $this->config->safe->mode)) dao::$errors['password'] = zget($this->lang->user->placeholder->passwordStrength, $this->config->safe->mode, $this->lang->user->weakPassword); if(!empty($this->config->safe->changeWeak)) { if(!isset($this->config->safe->weak)) $this->app->loadConfig('admin');