Skip to content

Commit

Permalink
Reset passwordRequestedAt on plain password change to trigger doctrin…
Browse files Browse the repository at this point in the history
…e listener
  • Loading branch information
core23 committed Mar 6, 2024
1 parent eb5fbc0 commit 3fab6f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Model/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ public function setSuperAdmin(bool $boolean): void

public function setPlainPassword(?string $password): void
{
$this->plainPassword = $password;
$this->plainPassword = $password;
$this->passwordRequestedAt = null;
}

public function setLastLogin(DateTime $time = null): void
Expand Down

0 comments on commit 3fab6f9

Please sign in to comment.