From a9f3e1ba2605c3b80daf80436d29843515fbeb58 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 8 Nov 2023 17:48:02 +0100 Subject: [PATCH] user forgot not displaying unknown user --- core/module/user/user.php | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/core/module/user/user.php b/core/module/user/user.php index 63221a7a..38a16b4d 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -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([