bug changement de mot de passe

This commit is contained in:
Fred Tempez 2020-10-07 19:01:57 +02:00
parent fe7a6f3ca0
commit 5a151c577c

View File

@ -19,7 +19,6 @@ class user extends common {
'delete' => self::GROUP_ADMIN,
'import' => self::GROUP_ADMIN,
'index' => self::GROUP_ADMIN,
'csvstring_to_array' => self::GROUP_ADMIN,
'edit' => self::GROUP_MEMBER,
'logout' => self::GROUP_MEMBER,
'forgot' => self::GROUP_VISITOR,
@ -424,7 +423,8 @@ class user extends common {
// Valeurs en sortie
$this->addOutput([
'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
]);
}
@ -540,7 +540,8 @@ class user extends common {
}
// Valeurs en sortie
$this->addOutput([
'title' => 'Réinitialisation du mot de passe',
'display' => self::DISPLAY_LAYOUT_LIGHT,
'title' => 'Réinitialisation de votre mot de passe',
'view' => 'reset'
]);
}
@ -583,12 +584,17 @@ class user extends common {
$userId, [
'firstname' => $item['prenom'],
'forgot' => 0,
'group' => $item['groupe'],
'group' => (int) $item['groupe'],
'lastname' => $item['nom'],
'mail' => $item['email'],
'pseudo' => $item['prenom'],
'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');
} else {