Browse Source

Ensure a password can't contain a "/"

evacome-wrapper
Ludovic Poujol 2 years ago
parent
commit
a200ccfdeb
  1. 5
      evolibs/Form.php

5
evolibs/Form.php

@ -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;
}

Loading…
Cancel
Save