Valider nouveau user

This commit is contained in:
Fred Tempez 2020-09-09 17:01:31 +02:00
parent 61984d5c78
commit f84613561e

View File

@ -53,11 +53,11 @@ class user extends common {
$userFirstname = $this->getInput('userAddFirstname', helper::FILTER_STRING_SHORT, true); $userFirstname = $this->getInput('userAddFirstname', helper::FILTER_STRING_SHORT, true);
$userLastname = $this->getInput('userAddLastname', helper::FILTER_STRING_SHORT, true); $userLastname = $this->getInput('userAddLastname', helper::FILTER_STRING_SHORT, true);
$userMail = $this->getInput('userAddMail', helper::FILTER_MAIL, true); $userMail = $this->getInput('userAddMail', helper::FILTER_MAIL, true);
// Pas de nom saisi // Vérification des saisies
if (empty($userFirstname) || if (empty($userFirstname)
empty($userLastname) || AND empty($userLastname)
empty($this->getInput('userAddPassword', helper::FILTER_STRING_SHORT, true)) || AND empty($this->getInput('userAddPassword', helper::FILTER_STRING_SHORT, true))
empty($this->getInput('userAddConfirmPassword', helper::FILTER_STRING_SHORT, true))) { AND empty($this->getInput('userAddConfirmPassword', helper::FILTER_STRING_SHORT, true))) {
$check=false; $check=false;
} }
// Si tout est ok création effective // Si tout est ok création effective