mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-12-16 05:20:31 +01:00
Don't show email address when sending forgot pw instructions #571
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
1. [](#improved)
|
1. [](#improved)
|
||||||
* Cleaned up the Page Preview CSS to make it more 'standard' [#634](https://github.com/getgrav/grav-plugin-admin/issues/634)
|
* Cleaned up the Page Preview CSS to make it more 'standard' [#634](https://github.com/getgrav/grav-plugin-admin/issues/634)
|
||||||
* Added a legend with the Page colors explained [#637](https://github.com/getgrav/grav-plugin-admin/issues/637)
|
* Added a legend with the Page colors explained [#637](https://github.com/getgrav/grav-plugin-admin/issues/637)
|
||||||
|
* Hide email output when sending forgot password instructions [#571](https://github.com/getgrav/grav-plugin-admin/issues/571)
|
||||||
1. [](#bugfix)
|
1. [](#bugfix)
|
||||||
* Fixed "Data type `System` doesn't exist!" error when activating a theme [#635](https://github.com/getgrav/grav-plugin-admin/issues/635)
|
* Fixed "Data type `System` doesn't exist!" error when activating a theme [#635](https://github.com/getgrav/grav-plugin-admin/issues/635)
|
||||||
* Fixed issue with custom media types not deleting on save [#633](https://github.com/getgrav/grav-plugin-admin/issues/633)
|
* Fixed issue with custom media types not deleting on save [#633](https://github.com/getgrav/grav-plugin-admin/issues/633)
|
||||||
|
|||||||
@@ -553,8 +553,7 @@ class AdminController
|
|||||||
if ($sent < 1) {
|
if ($sent < 1) {
|
||||||
$this->admin->setMessage($this->admin->translate('PLUGIN_ADMIN.FORGOT_FAILED_TO_EMAIL'), 'error');
|
$this->admin->setMessage($this->admin->translate('PLUGIN_ADMIN.FORGOT_FAILED_TO_EMAIL'), 'error');
|
||||||
} else {
|
} else {
|
||||||
$this->admin->setMessage($this->admin->translate(['PLUGIN_ADMIN.FORGOT_INSTRUCTIONS_SENT_VIA_EMAIL', $to]),
|
$this->admin->setMessage($this->admin->translate('PLUGIN_ADMIN.FORGOT_INSTRUCTIONS_SENT_VIA_EMAIL'), 'info');
|
||||||
'info');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->setRedirect('/');
|
$this->setRedirect('/');
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ PLUGIN_ADMIN:
|
|||||||
RESET_LINK_EXPIRED: "Reset link has expired, please try again"
|
RESET_LINK_EXPIRED: "Reset link has expired, please try again"
|
||||||
RESET_PASSWORD_RESET: "Password has been reset"
|
RESET_PASSWORD_RESET: "Password has been reset"
|
||||||
RESET_INVALID_LINK: "Invalid reset link used, please try again"
|
RESET_INVALID_LINK: "Invalid reset link used, please try again"
|
||||||
FORGOT_INSTRUCTIONS_SENT_VIA_EMAIL: "Instructions to reset your password have been sent via email to %s"
|
FORGOT_INSTRUCTIONS_SENT_VIA_EMAIL: "Instructions to reset your password have been sent to your email address"
|
||||||
FORGOT_FAILED_TO_EMAIL: "Failed to email instructions, please try again later"
|
FORGOT_FAILED_TO_EMAIL: "Failed to email instructions, please try again later"
|
||||||
FORGOT_CANNOT_RESET_EMAIL_NO_EMAIL: "Cannot reset password for %s, no email address is set"
|
FORGOT_CANNOT_RESET_EMAIL_NO_EMAIL: "Cannot reset password for %s, no email address is set"
|
||||||
FORGOT_USERNAME_DOES_NOT_EXIST: "User with username <b>%s</b> does not exist"
|
FORGOT_USERNAME_DOES_NOT_EXIST: "User with username <b>%s</b> does not exist"
|
||||||
|
|||||||
Reference in New Issue
Block a user