Ensure a password can't contain a "/"
This commit is contained in:
parent
d63150c4ce
commit
a200ccfdeb
|
@ -720,6 +720,11 @@ class PasswordInputFormField extends FormField {
|
||||||
return FALSE;
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue