Skip to content

Commit

Permalink
Update success message
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Dec 11, 2023
1 parent f77413a commit 6ece409
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [5.0.1](https://github.com/userfrosting/sprinkle-admin/compare/5.0.0...5.0.1)
- Update success message when admin resets password for a user - Fix [#852](https://github.com/userfrosting/UserFrosting/issues/852)

## [5.0.0-alpha3](https://github.com/userfrosting/sprinkle-admin/compare/5.0.0-alpha2...5.0.0-alpha3)
- Update cache clearing action.

Expand Down
1 change: 1 addition & 0 deletions app/locale/en_US/messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
'CHANGE_PASSWORD' => 'Change User Password',
'SEND_PASSWORD_LINK' => 'Send the user a link that will allow them to choose their own password',
'SET_PASSWORD' => "Set the user's password as",
'PASSWORD_RESET' => 'A password reset link will be sent to <strong>{{email}}</strong>.',
],

'ACTIVATE' => 'Activate user',
Expand Down
3 changes: 1 addition & 2 deletions app/src/Controller/User/UserPasswordAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,9 @@ protected function handle(UserInterface $user): void
$this->validateAccess($user);

// Send password reset email.
// TODO : Mail template
$this->passwordEmail->send($user, 'mail/password-reset.html.twig');

$this->alert->addMessageTranslated('success', 'PASSWORD.FORGET.REQUEST_SENT', [
$this->alert->addMessageTranslated('success', 'USER.ADMIN.PASSWORD_RESET', [
'email' => $user->email,
]);
}
Expand Down

0 comments on commit 6ece409

Please sign in to comment.