Ensure a password can't contain a "/"

Cette révision appartient à :
Ludovic Poujol 2019-04-23 18:16:33 +02:00
Parent d63150c4ce
révision a200ccfdeb
1 fichiers modifiés avec 5 ajouts et 0 suppressions

Voir le fichier

@ -720,6 +720,11 @@ class PasswordInputFormField extends FormField {
return FALSE;
}
if(!preg_match('#.*[/]+.*#',$this->value)==0){
if($set_error) $this->error = 'Votre mot de passe doit contenir le caractère \'/\'';
return FALSE;
}
return TRUE;
}