Added: visual password weakness meter
Bugfix: PasswordWeaknessCheck
This commit is contained in:
djmaze 2021-03-04 14:18:23 +01:00
parent 96ea4fdf0a
commit a36cb17165
3 changed files with 39 additions and 2 deletions

View file

@ -194,7 +194,7 @@ class ChangePasswordPlugin extends \RainLoop\Plugins\AbstractPlugin
private static function PasswordWeaknessCheck(string $sPassword) : bool
{
return !!preg_match('/111|1234|password|abc|qwerty|monkey|letmein|dragon|baseball|iloveyou|trustno1|sunshine|master|welcome|shadow|ashley|football|jesus|michael|ninja|mustang|vkontakte/i', $sPassword);
return !\preg_match('/111|1234|password|abc|qwerty|monkey|letmein|dragon|baseball|iloveyou|trustno1|sunshine|master|welcome|shadow|ashley|football|jesus|michael|ninja|mustang|vkontakte/i', $sPassword);
}
}