diff --git a/CHANGELOG.md b/CHANGELOG.md index 63dfca19..b1aa6634 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Fix: update Dutch (nl) translations (squio) - Enh: possibility to limit the depth of the recursion when getting user ids from roles (mp1509) - Fix: UserSearch avoid fields name conflict if joined with other tables (liviuk2) +- Fix: PasswordExpireService return false when user model attribute "password_changed_at" is already set at null. ## 1.6.1 March 4th, 2023 diff --git a/src/User/Service/PasswordExpireService.php b/src/User/Service/PasswordExpireService.php index bfec3f7c..38190e58 100644 --- a/src/User/Service/PasswordExpireService.php +++ b/src/User/Service/PasswordExpireService.php @@ -25,8 +25,9 @@ public function __construct(User $model) public function run() { - return $this->model->updateAttributes([ + $this->model->updateAttributes([ 'password_changed_at' => null, ]); + return true; } }