Task #2309 mot de passe fort
This commit is contained in:
parent
86852bc425
commit
a0d1c26eaf
10 changed files with 296 additions and 35 deletions
|
|
@ -233,7 +233,19 @@ if (isset($_POST['save_config'])) {
|
|||
$err++;
|
||||
|
||||
}
|
||||
|
||||
// check strenght password admin
|
||||
$passw_error=check_password_strength($cpassword_admin);
|
||||
if ( count($passw_error['msg'])>0) {
|
||||
echo '<h2 class="warning">';
|
||||
echo _("Mot de passe trop faible");
|
||||
echo '</h2>';
|
||||
echo '<ol>';
|
||||
foreach ($passw_error['msg'] as $error) {
|
||||
echo "<li>",$error,"</li>";
|
||||
}
|
||||
echo '</ol>';
|
||||
$err++;
|
||||
}
|
||||
// check password and admin not containing quote or double quote
|
||||
//
|
||||
if ( strpos($cpassword_admin,'"') !== false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue