From f2a819457216e89f57de1914cc915bac209ed9c0 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Thu, 20 Jun 2019 22:13:04 +0300 Subject: [PATCH] Resetting a user's password clears the user's site access [grav#2528] --- CHANGELOG.md | 1 + classes/admincontroller.php | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65093559..054c02ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ 1. [](#bugfix) * Fixed issue with charts in dashboard where label would cut off [#1700](https://github.com/getgrav/grav-plugin-admin/issues/1700) + * Resetting a user's password clears the user's site access [grav#2528](https://github.com/getgrav/grav/issues/2528) # v1.9.6 ## 06/15/2019 diff --git a/classes/admincontroller.php b/classes/admincontroller.php index a55bdc61..a50cfaa5 100644 --- a/classes/admincontroller.php +++ b/classes/admincontroller.php @@ -168,9 +168,6 @@ class AdminController extends AdminBaseController $user->undef('hashed_password'); $user->undef('reset'); $user->set('password', $password); - - $user->validate(); - $user->filter(); $user->save(); $this->admin->setMessage($this->admin::translate('PLUGIN_ADMIN.RESET_PASSWORD_RESET'), 'info');