forked from ZwiiCMS-Team/ZwiiCMS
Réinitialisation du mdp
This commit is contained in:
parent
0a2e3cb28d
commit
62a4debf62
12
CHANGES.md
12
CHANGES.md
@ -1,5 +1,15 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Version 10.3.09
|
||||||
|
Corrections :
|
||||||
|
- Configuration : persistance de l'ouverture des blocs.
|
||||||
|
- Réinitialisation du mot de passe :
|
||||||
|
- Remise à zéro du timer après renouvellement du mot de passe.
|
||||||
|
- Affichage de le fenêtrenouveau mot de passe en mode allégé.
|
||||||
|
- Redirection sur la page d'accueil.
|
||||||
|
- Modules news et blog : transparence icône RSS.
|
||||||
|
- Position de l'écran de configuration
|
||||||
|
|
||||||
## Version 10.3.08
|
## Version 10.3.08
|
||||||
Corrections :
|
Corrections :
|
||||||
- Notification de mise à jour d'update bloqué
|
- Notification de mise à jour d'update bloqué
|
||||||
@ -12,7 +22,7 @@ Corrections :
|
|||||||
## version 10.3.06
|
## version 10.3.06
|
||||||
- Correction :
|
- Correction :
|
||||||
- Edition de page avec module, le changement de mise en page désactive le bouton d'option du module.
|
- Edition de page avec module, le changement de mise en page désactive le bouton d'option du module.
|
||||||
- Modification :
|
- Modification :
|
||||||
- Modules News et Blog : ajout de l'option flux RSS. L'option est activée par défaut.
|
- Modules News et Blog : ajout de l'option flux RSS. L'option est activée par défaut.
|
||||||
|
|
||||||
## version 10.3.05
|
## version 10.3.05
|
||||||
|
@ -40,7 +40,7 @@ class common {
|
|||||||
const ACCESS_TIMER = 1800;
|
const ACCESS_TIMER = 1800;
|
||||||
|
|
||||||
// Numéro de version
|
// Numéro de version
|
||||||
const ZWII_VERSION = '10.3.08';
|
const ZWII_VERSION = '10.3.09';
|
||||||
const ZWII_UPDATE_CHANNEL = "v10";
|
const ZWII_UPDATE_CHANNEL = "v10";
|
||||||
|
|
||||||
public static $actions = [];
|
public static $actions = [];
|
||||||
@ -1602,7 +1602,7 @@ class core extends common {
|
|||||||
//$css .= '.button.buttonGrey,.button.buttonGrey:hover{color:' . $this->getData(['theme', 'text', 'textColor']) . '}';
|
//$css .= '.button.buttonGrey,.button.buttonGrey:hover{color:' . $this->getData(['theme', 'text', 'textColor']) . '}';
|
||||||
$css .= '.container{max-width:' . $this->getData(['theme', 'site', 'width']) . '}';
|
$css .= '.container{max-width:' . $this->getData(['theme', 'site', 'width']) . '}';
|
||||||
$margin = $this->getData(['theme', 'site', 'margin']) ? '0' : '20px';
|
$margin = $this->getData(['theme', 'site', 'margin']) ? '0' : '20px';
|
||||||
$css .= $this->getData(['theme', 'site', 'width']) === '100%' ? '#site.light{margin:150px auto !important;}#site{margin:0 auto !important;} body{margin:0 auto !important;} #bar{margin:0 auto !important;} body > header{margin:0 auto !important;} body > nav {margin: 0 auto !important;} body > footer {margin:0 auto !important;}': "#site.light{margin: 100px auto !important;}#site{margin: " . $margin . " auto !important;} body{margin:0px 10px;} #bar{margin: 0 -10px;} body > header{margin: 0 -10px;} body > nav {margin: 0 -10px;} body > footer {margin: 0 -10px;} ";
|
$css .= $this->getData(['theme', 'site', 'width']) === '100%' ? '#site.light{margin:60px auto !important;}#site{margin:0 auto !important;} body{margin:0 auto !important;} #bar{margin:0 auto !important;} body > header{margin:0 auto !important;} body > nav {margin: 0 auto !important;} body > footer {margin:0 auto !important;}': "#site.light{margin: 60px auto !important;}#site{margin: " . $margin . " auto !important;} body{margin:0px 10px;} #bar{margin: 0 -10px;} body > header{margin: 0 -10px;} body > nav {margin: 0 -10px;} body > footer {margin: 0 -10px;} ";
|
||||||
$css .= $this->getData(['theme', 'site', 'width']) === '750px' ? '.button, button{font-size:0.8em;}' : '';
|
$css .= $this->getData(['theme', 'site', 'width']) === '750px' ? '.button, button{font-size:0.8em;}' : '';
|
||||||
$css .= '#site{background-color:' . $this->getData(['theme', 'site', 'backgroundColor']) . ';border-radius:' . $this->getData(['theme', 'site', 'radius']) . ';box-shadow:' . $this->getData(['theme', 'site', 'shadow']) . ' #212223;}';
|
$css .= '#site{background-color:' . $this->getData(['theme', 'site', 'backgroundColor']) . ';border-radius:' . $this->getData(['theme', 'site', 'radius']) . ';box-shadow:' . $this->getData(['theme', 'site', 'shadow']) . ' #212223;}';
|
||||||
$css .= '.editorWysiwyg {background-color:' . $this->getData(['theme', 'site', 'backgroundColor']) . ';}';
|
$css .= '.editorWysiwyg {background-color:' . $this->getData(['theme', 'site', 'backgroundColor']) . ';}';
|
||||||
|
@ -522,16 +522,21 @@ class user extends common {
|
|||||||
$this->setData(['user', $this->getUrl(2), 'password', $newPassword]);
|
$this->setData(['user', $this->getUrl(2), 'password', $newPassword]);
|
||||||
// Réinitialise la date de la demande
|
// Réinitialise la date de la demande
|
||||||
$this->setData(['user', $this->getUrl(2), 'forgot', 0]);
|
$this->setData(['user', $this->getUrl(2), 'forgot', 0]);
|
||||||
|
// Réinitialise le blocage
|
||||||
|
$this->setData(['user', $this->getUrl(2),'connectFail',0 ]);
|
||||||
|
$this->setData(['user', $this->getUrl(2),'connectTimeout',0 ]);
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'notification' => 'Nouveau mot de passe enregistré',
|
'notification' => 'Nouveau mot de passe enregistré',
|
||||||
'redirect' => helper::baseUrl() . 'user/login/' . str_replace('/', '_', $this->getUrl()),
|
//'redirect' => helper::baseUrl() . 'user/login/' . str_replace('/', '_', $this->getUrl()),
|
||||||
|
'redirect' => helper::baseUrl(),
|
||||||
'state' => true
|
'state' => true
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
|
'display' => self::DISPLAY_LAYOUT_LIGHT,
|
||||||
'title' => 'Réinitialisation du mot de passe',
|
'title' => 'Réinitialisation du mot de passe',
|
||||||
'view' => 'reset'
|
'view' => 'reset'
|
||||||
]);
|
]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user