Skip to content

Commit 78d9462

Browse files
committed
Internal: Fix issue with password_last_updated extra field being out of format for old records - refs BT#21400
1 parent 2ac4d47 commit 78d9462

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main/inc/lib/usermanager.lib.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7770,6 +7770,9 @@ public static function redirectToResetPassword($userId)
77707770
} else {
77717771
$now = new \DateTime(null, new DateTimeZone('UTC'));
77727772
// In some cases, old records might contain an incomplete Y-m-d H:i:s format
7773+
if (strlen($lastUpdate['password_updated_at']) == 10) {
7774+
$lastUpdate['password_updated_at'] .= ' 00:00:00';
7775+
}
77737776
if (strlen($lastUpdate['password_updated_at']) == 16) {
77747777
$lastUpdate['password_updated_at'] .= ':00';
77757778
}

0 commit comments

Comments
 (0)