Acc/Passwords
* do not enforce minimum password length for imported accounts
This commit is contained in:
parent
bd2a5acf21
commit
2bc85dd109
1 changed files with 2 additions and 1 deletions
|
|
@ -382,7 +382,8 @@ class User
|
|||
{
|
||||
$errCode = 0;
|
||||
|
||||
if (mb_strlen($pass) < 6)
|
||||
// only enforce for own passwords
|
||||
if (mb_strlen($pass) < 6 && CFG_ACC_AUTH_MODE == AUTH_MODE_SELF)
|
||||
$errCode = 1;
|
||||
// else if (preg_match('/[^\w\d!"#\$%]/', $pass)) // such things exist..? :o
|
||||
// $errCode = 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue