Skip to content

Commit 05511ef

Browse files
committed
Merge branch '3.x' into 4.x
2 parents fd051bb + 1fa2508 commit 05511ef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Auth/Models/User.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,11 @@ public function attemptResetPassword($resetCode, $newPassword)
320320
if ($this->checkResetPasswordCode($resetCode)) {
321321
$this->password = $newPassword;
322322
$this->reset_password_code = null;
323+
324+
if ($this->is_password_expired) {
325+
$this->is_password_expired = false;
326+
}
327+
323328
return $this->forceSave();
324329
}
325330

0 commit comments

Comments
 (0)