From 77e2e65c60d7ecc83080792134c4cf10338e56ff Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 2 Jun 2016 12:38:49 -0600 Subject: [PATCH] Don't show email address when sending forgot pw instructions #571 --- CHANGELOG.md | 1 + classes/controller.php | 3 +-- languages/en.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d5c42c4c..eea3230b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ 1. [](#improved) * 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) + * Hide email output when sending forgot password instructions [#571](https://github.com/getgrav/grav-plugin-admin/issues/571) 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 issue with custom media types not deleting on save [#633](https://github.com/getgrav/grav-plugin-admin/issues/633) diff --git a/classes/controller.php b/classes/controller.php index ac997122..12b6c8ef 100644 --- a/classes/controller.php +++ b/classes/controller.php @@ -553,8 +553,7 @@ class AdminController if ($sent < 1) { $this->admin->setMessage($this->admin->translate('PLUGIN_ADMIN.FORGOT_FAILED_TO_EMAIL'), 'error'); } else { - $this->admin->setMessage($this->admin->translate(['PLUGIN_ADMIN.FORGOT_INSTRUCTIONS_SENT_VIA_EMAIL', $to]), - 'info'); + $this->admin->setMessage($this->admin->translate('PLUGIN_ADMIN.FORGOT_INSTRUCTIONS_SENT_VIA_EMAIL'), 'info'); } $this->setRedirect('/'); diff --git a/languages/en.yaml b/languages/en.yaml index 7cf0a64e..40c9d325 100644 --- a/languages/en.yaml +++ b/languages/en.yaml @@ -15,7 +15,7 @@ PLUGIN_ADMIN: RESET_LINK_EXPIRED: "Reset link has expired, please try again" RESET_PASSWORD_RESET: "Password has been reset" 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_CANNOT_RESET_EMAIL_NO_EMAIL: "Cannot reset password for %s, no email address is set" FORGOT_USERNAME_DOES_NOT_EXIST: "User with username %s does not exist"