Skip to content

Commit 15bf3d1

Browse files
authored
User: Don't reset newly set requireReset (joomla#44519)
1 parent d88eb9e commit 15bf3d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libraries/src/User/User.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,10 @@ public function bind(&$array)
649649

650650
$array['password'] = UserHelper::hashPassword($array['password']);
651651

652-
// Reset the change password flag
653-
$array['requireReset'] = 0;
652+
// Reset the change password flag if it was set previously
653+
if ($this->requireReset) {
654+
$array['requireReset'] = 0;
655+
}
654656
} else {
655657
$array['password'] = $this->password;
656658
}

0 commit comments

Comments
 (0)