forked from ZwiiCMS-Team/ZwiiCMS
Revert "10.3.00 module installation corrections"
This reverts commit 711e5fef444f06bcf313b0776b593057baefb283.
This commit is contained in:
parent
711e5fef44
commit
61984d5c78
@ -38,7 +38,6 @@ class user extends common {
|
|||||||
// Soumission du formulaire
|
// Soumission du formulaire
|
||||||
if($this->isPost()) {
|
if($this->isPost()) {
|
||||||
$check=true;
|
$check=true;
|
||||||
$sent = false;
|
|
||||||
// L'identifiant d'utilisateur est indisponible
|
// L'identifiant d'utilisateur est indisponible
|
||||||
$userId = $this->getInput('userAddId', helper::FILTER_ID, true);
|
$userId = $this->getInput('userAddId', helper::FILTER_ID, true);
|
||||||
if($this->getData(['user', $userId])) {
|
if($this->getData(['user', $userId])) {
|
||||||
@ -55,14 +54,12 @@ class user extends common {
|
|||||||
$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
|
// Pas de nom saisi
|
||||||
if (empty($userFirstname)
|
if (empty($userFirstname) ||
|
||||||
OR empty($userLastname)
|
empty($userLastname) ||
|
||||||
OR empty($this->getInput('userAddPassword', helper::FILTER_STRING_SHORT, true))
|
empty($this->getInput('userAddPassword', helper::FILTER_STRING_SHORT, true)) ||
|
||||||
OR empty($this->getInput('userAddConfirmPassword', helper::FILTER_STRING_SHORT, true)) )
|
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
|
||||||
if ($check === true) {
|
if ($check === true) {
|
||||||
$this->setData([
|
$this->setData([
|
||||||
@ -77,7 +74,9 @@ class user extends common {
|
|||||||
'password' => $this->getInput('userAddPassword', helper::FILTER_PASSWORD, true),
|
'password' => $this->getInput('userAddPassword', helper::FILTER_PASSWORD, true),
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
|
}
|
||||||
// Envoie le mail
|
// Envoie le mail
|
||||||
|
$sent = true;
|
||||||
if($this->getInput('userAddSendMail', helper::FILTER_BOOLEAN) && $check === true) {
|
if($this->getInput('userAddSendMail', helper::FILTER_BOOLEAN) && $check === true) {
|
||||||
$sent = $this->sendMail(
|
$sent = $this->sendMail(
|
||||||
$userMail,
|
$userMail,
|
||||||
@ -90,7 +89,6 @@ class user extends common {
|
|||||||
null
|
null
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'redirect' => helper::baseUrl() . 'user',
|
'redirect' => helper::baseUrl() . 'user',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user