forked from ZwiiCMS-Team/ZwiiCMS
[9.1.06] nouvel utilisateur : mail envoyé avec erreur mot de passe
This commit is contained in:
parent
c8aad2c249
commit
4259e5714b
@ -6,3 +6,10 @@ Options -Indexes
|
|||||||
|
|
||||||
# Attention, surtout ne rien modifier ci-dessous !
|
# Attention, surtout ne rien modifier ci-dessous !
|
||||||
# URL rewriting
|
# URL rewriting
|
||||||
|
<ifModule mod_rewrite.c>
|
||||||
|
RewriteEngine on
|
||||||
|
RewriteBase /ZwiiCMS/
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteRule ^(.*)$ index.php?$1 [L]
|
||||||
|
</ifModule>
|
@ -28,7 +28,7 @@ class common {
|
|||||||
const GROUP_ADMIN = 3;
|
const GROUP_ADMIN = 3;
|
||||||
|
|
||||||
// Numéro de version
|
// Numéro de version
|
||||||
const ZWII_VERSION = '9.1.05';
|
const ZWII_VERSION = '9.1.06';
|
||||||
|
|
||||||
public static $actions = [];
|
public static $actions = [];
|
||||||
public static $coreModuleIds = [
|
public static $coreModuleIds = [
|
||||||
|
@ -38,8 +38,10 @@ class user extends common {
|
|||||||
self::$inputNotices['userAddId'] = 'Identifiant déjà utilisé';
|
self::$inputNotices['userAddId'] = 'Identifiant déjà utilisé';
|
||||||
}
|
}
|
||||||
// Double vérification pour le mot de passe
|
// Double vérification pour le mot de passe
|
||||||
|
$mail = true;
|
||||||
if($this->getInput('userAddPassword', helper::FILTER_STRING_SHORT, true) !== $this->getInput('userAddConfirmPassword', helper::FILTER_STRING_SHORT, true)) {
|
if($this->getInput('userAddPassword', helper::FILTER_STRING_SHORT, true) !== $this->getInput('userAddConfirmPassword', helper::FILTER_STRING_SHORT, true)) {
|
||||||
self::$inputNotices['userAddConfirmPassword'] = 'Incorrect';
|
self::$inputNotices['userAddConfirmPassword'] = 'Incorrect';
|
||||||
|
$mail = false;
|
||||||
}
|
}
|
||||||
// Crée l'utilisateur
|
// Crée l'utilisateur
|
||||||
$userFirstname = $this->getInput('userAddFirstname', helper::FILTER_STRING_SHORT, true);
|
$userFirstname = $this->getInput('userAddFirstname', helper::FILTER_STRING_SHORT, true);
|
||||||
@ -73,8 +75,8 @@ class user extends common {
|
|||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'redirect' => helper::baseUrl() . 'user',
|
'redirect' => helper::baseUrl() . 'user',
|
||||||
'notification' => ($sent === true ? 'Utilisateur créé' : $sent),
|
'notification' => (($sent === true) && ($mail === true) ? 'Utilisateur créé' : $sent),
|
||||||
'state' => ($sent === true ? true : null)
|
'state' => (($sent === true) && ($mail === true) ? true : null)
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
|
12
robots.txt
Normal file
12
robots.txt
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
# ZWII CONFIG ---------
|
||||||
|
User-agent: *
|
||||||
|
Disallow: /core/
|
||||||
|
Disallow: /module/
|
||||||
|
Disallow: /site/data
|
||||||
|
Disallow: /site/tmp
|
||||||
|
Disallow: /site/backup
|
||||||
|
Allow: /site/file/
|
||||||
|
Sitemap: http://localhost/ZwiiCMS/sitemap.xml
|
||||||
|
Sitemap: http://localhost/ZwiiCMS/sitemap.xml.gz
|
||||||
|
# ZWII CONFIG ---------
|
@ -1,3 +0,0 @@
|
|||||||
# Bloque l'accès aux sauvegardes
|
|
||||||
Order deny,allow
|
|
||||||
Deny from all
|
|
36
sitemap.xml
Normal file
36
sitemap.xml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- generated-on="2019-05-19T09:44:02+02:00" -->
|
||||||
|
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
|
||||||
|
<url>
|
||||||
|
<loc>http://localhost/ZwiiCMS/accueil</loc>
|
||||||
|
<lastmod>2019-05-19T09:44:02+02:00</lastmod>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://localhost/ZwiiCMS/enfant</loc>
|
||||||
|
<lastmod>2019-05-19T09:44:02+02:00</lastmod>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://localhost/ZwiiCMS/mise-en-page</loc>
|
||||||
|
<lastmod>2019-05-19T09:44:02+02:00</lastmod>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://localhost/ZwiiCMS/menu-lateral</loc>
|
||||||
|
<lastmod>2019-05-19T09:44:02+02:00</lastmod>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://localhost/ZwiiCMS/blog</loc>
|
||||||
|
<lastmod>2019-05-19T09:44:02+02:00</lastmod>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://localhost/ZwiiCMS/galeries</loc>
|
||||||
|
<lastmod>2019-05-19T09:44:02+02:00</lastmod>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://localhost/ZwiiCMS/site-de-zwii</loc>
|
||||||
|
<lastmod>2019-05-19T09:44:02+02:00</lastmod>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>http://localhost/ZwiiCMS/contact</loc>
|
||||||
|
<lastmod>2019-05-19T09:44:02+02:00</lastmod>
|
||||||
|
</url>
|
||||||
|
</urlset>
|
BIN
sitemap.xml.gz
Normal file
BIN
sitemap.xml.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user