Ajout erreur404 & 403, modif regex mdp, lien user de preview fixed
This commit is contained in:
parent
46bc4952dc
commit
a0738bb737
11 changed files with 52 additions and 10 deletions
|
|
@ -110,7 +110,7 @@ class UserCtrl extends MotherCtrl {
|
|||
$arrError['user_pseudo'] = "Le pseudo est obligatoire";
|
||||
}
|
||||
|
||||
$strRegex = "/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{16,}$/";
|
||||
$strRegex = "/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{15,}$/";
|
||||
if ($objUser->getPwd() == ""){
|
||||
$arrError['user_password'] = "Le mot de passe est obligatoire";
|
||||
}else if (!preg_match($strRegex, $objUser->getPwd())){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue