* Code for task#106513.

This commit is contained in:
xieqiyu
2023-11-24 14:36:19 +08:00
parent 63c4ad7018
commit 40a77dfa29
4 changed files with 44 additions and 18 deletions
+2 -2
View File
@@ -71,16 +71,16 @@ class adminModel extends model
}
/**
* 弱口令扫描。
* Check weak.
*
* @param object $user
* @access public
* @return bool
*/
public function checkWeak($user)
public function checkWeak(object $user): bool
{
$weaks = array();
foreach(explode(',', $this->config->safe->weak) as $weak)
{
$weak = md5(trim($weak));