user forgot not displaying unknown user

This commit is contained in:
Fred Tempez 2023-11-08 17:48:02 +01:00
parent e0ba8a81fe
commit a9f3e1ba26
1 changed files with 7 additions and 12 deletions

View File

@ -421,19 +421,14 @@ class user extends common
null,
$this->getData(['config', 'smtp', 'from'])
);
// Valeurs en sortie
$this->addOutput([
'notification' => ($sent === true ? helper::translate('Un mail a été envoyé pour confirmer la réinitialisation') : $sent),
'state' => ($sent === true ? true : null)
]);
}
// L'utilisateur n'existe pas
else {
// Valeurs en sortie
$this->addOutput([
'notification' => helper::translate('Utilisateur inexistant')
]);
}
// L'utilisateur n'existe pas, on ne le précise pas
// Valeurs en sortie
$this->addOutput([
'notification' => helper::translate('Un mail a été envoyé pour confirmer la réinitialisation'),
'state' => ($sent === true ? true : null)
]);
}
// Valeurs en sortie
$this->addOutput([