From a3dfcf4a02232f736cb1f6f1afc93baf824628f8 Mon Sep 17 00:00:00 2001 From: Andres Campanario Date: Tue, 12 Mar 2024 10:08:35 +0100 Subject: [PATCH] set flash message as success --- src/Controller/Traits/PasswordManagementTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/Traits/PasswordManagementTrait.php b/src/Controller/Traits/PasswordManagementTrait.php index 54bec945..2c580143 100644 --- a/src/Controller/Traits/PasswordManagementTrait.php +++ b/src/Controller/Traits/PasswordManagementTrait.php @@ -176,7 +176,7 @@ public function requestResetPassword() return $this->redirect(['action' => 'login']); } catch (UserNotFoundException|UserNotActiveException $exception) { $msg = __d('cake_d_c/users', 'If the account is valid, the system will send an instructional email to the address on record.'); - $this->Flash->error($msg); + $this->Flash->success($msg); } catch (Exception $exception) { $msg = __d('cake_d_c/users', 'There was an error please contact Administrator'); $this->Flash->error($msg);