mirror of
https://github.com/silentsakky/zarafa-webapp-passwd
synced 2026-07-27 10:30:56 +02:00
make proper message for weak passwords
add first release build update description
This commit is contained in:
parent
67e7a25ea1
commit
d2dd91cfe5
6 changed files with 43 additions and 9 deletions
|
|
@ -126,7 +126,7 @@ class PasswdModule extends Module
|
|||
$errorMessage = _('Password is not changed.');
|
||||
}
|
||||
} else {
|
||||
$errorMessage = _('Password is weak.');
|
||||
$errorMessage = _('Password is weak. Password should contain capital, non capital letters and numbers. Password shuold have 8 to 20 characters.');
|
||||
}
|
||||
} else {
|
||||
$errorMessage = _('Current password does not match.');
|
||||
|
|
@ -178,7 +178,7 @@ class PasswdModule extends Module
|
|||
$errorMessage = _('Password is not changed.');
|
||||
}
|
||||
} else {
|
||||
$errorMessage = _('Password is weak.');
|
||||
$errorMessage = _('Password is weak. Password should contain capital, non capital letters and numbers. Password shuold have 8 to 20 characters.');
|
||||
}
|
||||
|
||||
if(!empty($errorMessage)) {
|
||||
|
|
@ -196,7 +196,7 @@ class PasswdModule extends Module
|
|||
* will return false.
|
||||
* Password should meet the following criteria:
|
||||
* - min. 8 chars, max. 20
|
||||
* - contain caps und noncaps characters
|
||||
* - contain caps and noncaps characters
|
||||
* - contain numbers
|
||||
* @param {String} $password password which should be checked.
|
||||
* @return {Boolean} true if password passes the minimum requirement else false.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue