* Fix code for user module.

This commit is contained in:
Yagami
2019-06-26 17:24:41 +08:00
parent 910ea1e96f
commit 09ae1056ea
5 changed files with 16 additions and 3 deletions
+6
View File
@@ -235,6 +235,12 @@ class adminModel extends model
public function checkWeak($user)
{
$weaks = array();
if($this->app->moduleName == 'user' and $this->app->methodName == 'login')
{
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));