Notification reset

This commit is contained in:
Fred Tempez 2023-11-08 15:11:54 +01:00
parent 8f7ff82637
commit 56a5b35417

View File

@ -1120,9 +1120,14 @@ class user extends common
// Id unique incorrecte
or $this->getUrl(3) !== md5(json_encode($this->getData(['user', $this->getUrl(2)])))
) {
$message[0] = ($this->getData(['user', $this->getUrl(2)]) === null) === true ?'Utilisateur inconnu':'';
$message[1] = ($this->getData(['user', $this->getUrl(2), 'forgot']) + 86400 < time()) === true ?'Temps dépassé':'';
$message[2] = ($this->getUrl(3) !== md5(json_encode($this->getData(['user', $this->getUrl(2)])))) === true ?'Id incorrect':'';
// Valeurs en sortie
$this->addOutput([
'access' => false
'access' => false,
'notification' => implode (' | ', $message)
]);
}
// Accès autorisé