mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-02-08 07:40:19 +01:00
Fix forgot/reset password process of sending escaped HTML emails
This commit is contained in:
@@ -559,7 +559,7 @@ class AdminController
|
||||
*/
|
||||
public function taskReset()
|
||||
{
|
||||
$data = $this->post;
|
||||
$data = $this->data;
|
||||
|
||||
if (isset($data['password'])) {
|
||||
$username = isset($data['username']) ? $data['username'] : null;
|
||||
@@ -607,6 +607,8 @@ class AdminController
|
||||
$this->setRedirect('/forgot');
|
||||
|
||||
return true;
|
||||
} else {
|
||||
$this->admin->setMessage($this->admin->translate('PLUGIN_ADMIN.RESET_NEW_PASSWORD'), 'info');
|
||||
}
|
||||
|
||||
$this->admin->forgot = ['username' => $user, 'token' => $token];
|
||||
|
||||
Reference in New Issue
Block a user