Fix forgot/reset password process of sending escaped HTML emails

This commit is contained in:
Andy Miller
2016-05-06 13:55:36 -06:00
parent 79a49fdcbc
commit 3fd928ac18
4 changed files with 6 additions and 15 deletions

View File

@@ -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];