* Finish task #65551.

This commit is contained in:
liumengyi
2022-08-18 08:21:33 +08:00
parent fe898f9e20
commit a998967592
6 changed files with 15 additions and 15 deletions
-7
View File
@@ -234,13 +234,6 @@ class adminModel extends model
{
$weaks = array();
/* Check weak password when login. */
if($this->app->moduleName == 'user' and $this->app->methodName == 'login')
{
if(!isset($_POST['passwordStrength'])) return false;
if(isset($this->config->safe->mode) and $this->post->passwordStrength < $this->config->safe->mode) return true;
}
foreach(explode(',', $this->config->safe->weak) as $weak)
{
$weak = md5(trim($weak));