Ajout erreur404 & 403, modif regex mdp, lien user de preview fixed

This commit is contained in:
laura.chevillet 2026-02-17 15:56:56 +01:00
parent 46bc4952dc
commit a0738bb737
11 changed files with 52 additions and 10 deletions

View file

@ -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())){