forked from ZwiiCMS-Team/ZwiiCMS
bug changement de mot de passe
This commit is contained in:
parent
fe7a6f3ca0
commit
5a151c577c
@ -19,7 +19,6 @@ class user extends common {
|
|||||||
'delete' => self::GROUP_ADMIN,
|
'delete' => self::GROUP_ADMIN,
|
||||||
'import' => self::GROUP_ADMIN,
|
'import' => self::GROUP_ADMIN,
|
||||||
'index' => self::GROUP_ADMIN,
|
'index' => self::GROUP_ADMIN,
|
||||||
'csvstring_to_array' => self::GROUP_ADMIN,
|
|
||||||
'edit' => self::GROUP_MEMBER,
|
'edit' => self::GROUP_MEMBER,
|
||||||
'logout' => self::GROUP_MEMBER,
|
'logout' => self::GROUP_MEMBER,
|
||||||
'forgot' => self::GROUP_VISITOR,
|
'forgot' => self::GROUP_VISITOR,
|
||||||
@ -424,7 +423,8 @@ class user extends common {
|
|||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'notification' => 'Connexion réussie',
|
'notification' => 'Connexion réussie',
|
||||||
'redirect' => helper::baseUrl() . str_replace('_', '/', str_replace('__', '#', $this->getUrl(2))),
|
//'redirect' => helper::baseUrl() . str_replace('_', '/', str_replace('__', '#', $this->getUrl(2))),
|
||||||
|
'redirect' => helper::baseUrl(),
|
||||||
'state' => true
|
'state' => true
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@ -540,7 +540,8 @@ class user extends common {
|
|||||||
}
|
}
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
'title' => 'Réinitialisation du mot de passe',
|
'display' => self::DISPLAY_LAYOUT_LIGHT,
|
||||||
|
'title' => 'Réinitialisation de votre mot de passe',
|
||||||
'view' => 'reset'
|
'view' => 'reset'
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@ -583,12 +584,17 @@ class user extends common {
|
|||||||
$userId, [
|
$userId, [
|
||||||
'firstname' => $item['prenom'],
|
'firstname' => $item['prenom'],
|
||||||
'forgot' => 0,
|
'forgot' => 0,
|
||||||
'group' => $item['groupe'],
|
'group' => (int) $item['groupe'],
|
||||||
'lastname' => $item['nom'],
|
'lastname' => $item['nom'],
|
||||||
'mail' => $item['email'],
|
'mail' => $item['email'],
|
||||||
'pseudo' => $item['prenom'],
|
'pseudo' => $item['prenom'],
|
||||||
'signature' => 1, // Pseudo
|
'signature' => 1, // Pseudo
|
||||||
'password' => uniqid() // A modifier à la première connexion
|
'password' => uniqid(), // A modifier à la première connexion
|
||||||
|
"connectFail" => null,
|
||||||
|
"connectTimeout" => null,
|
||||||
|
"accessUrl" => null,
|
||||||
|
"accessTimer" => null,
|
||||||
|
"accessCsrf" => null
|
||||||
]]);
|
]]);
|
||||||
$item['notification'] = template::ico('check');
|
$item['notification'] = template::ico('check');
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user