Valider nouveau user
This commit is contained in:
parent
61984d5c78
commit
f84613561e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user