Fix: Password regex

develop
sheychen 2018-05-01 18:59:15 +02:00
parent 4b2927860e
commit aa2449bc16
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class Input extends Element{
$this->data['type'] = 'password';
$this->data['password'] = true;
if($complexity){
$regex = '^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.[\W]).{8,}$';
$regex = '^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*\W).{8,}$';
$this->data['pattern'] = $regex;
$this->data['regex'] = $regex;
$this->data['title'] = 'Mot de passe trop simple';