forked from ZwiiCMS-Team/ZwiiCMS
Bug masque installation validé vide
This commit is contained in:
parent
0d5ed4bf8d
commit
b36a0f069f
@ -72,6 +72,14 @@ class install extends common {
|
||||
$this->setData(['module', 'blog', 'mon-deuxieme-article', 'userId', $userId]);
|
||||
$this->setData(['module', 'blog', 'mon-troisieme-article', 'userId', $userId]);
|
||||
}
|
||||
// Création de l'utilisateur si les données sont complétées.
|
||||
$success = false;
|
||||
if ( $userFirstname
|
||||
AND $userLastname
|
||||
AND $userMail
|
||||
AND $this->getInput('installPassword', helper::FILTER_PASSWORD, true)
|
||||
AND $this->getInput('installConfirmPassword', helper::FILTER_STRING_SHORT, true)
|
||||
){
|
||||
$success = $this->setData([
|
||||
'user',
|
||||
$userId,
|
||||
@ -84,6 +92,7 @@ class install extends common {
|
||||
'password' => $this->getInput('installPassword', helper::FILTER_PASSWORD, true)
|
||||
]
|
||||
]);
|
||||
}
|
||||
if ($success === true) { // Formulaire complété envoi du mail
|
||||
// Envoie le mail
|
||||
$sent = $this->sendMail(
|
||||
@ -102,6 +111,7 @@ class install extends common {
|
||||
// Créer sitemap
|
||||
$this->createSitemap();
|
||||
// Valeurs en sortie
|
||||
echo helper::baseUrl(false);
|
||||
$this->addOutput([
|
||||
'redirect' => helper::baseUrl(false),
|
||||
'notification' => ($sent === true ? 'Installation terminée' : $sent),
|
||||
|
Loading…
Reference in New Issue
Block a user