From 078ee0d95699e504066d2950f6245592b870e7a7 Mon Sep 17 00:00:00 2001 From: p4blojf Date: Mon, 13 Sep 2021 22:35:41 +0200 Subject: [PATCH] FIX allow password_changed_at to be saved (#433) --- CHANGELOG.md | 1 + src/User/Service/ResetPasswordService.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f3c3fe0..98ec898 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Enh #387: Added Persian translation (hadi-aj) - Fix #384: Delete flash messages after consuming (cgsmith) - Enh: Added SK translations (snickom) + - Fix: allow password_changed_at to be saved when reseting password (p4blojf) ## 1.5.1 April 5, 2020 - Fix #370: Extending view fix (effsoft) diff --git a/src/User/Service/ResetPasswordService.php b/src/User/Service/ResetPasswordService.php index 603ef19..93ca756 100644 --- a/src/User/Service/ResetPasswordService.php +++ b/src/User/Service/ResetPasswordService.php @@ -31,6 +31,6 @@ class ResetPasswordService implements ServiceInterface public function run() { $this->model->password = $this->password; - return (bool)$this->model->save(false, ['password_hash']); + return (bool)$this->model->save(false, ['password_hash','password_changed_at']); } }