Skip to content

Commit

Permalink
fix: reset $this->tempUser after save Email Identity
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jul 15, 2022
1 parent 8868006 commit 1ecdbdd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Models/UserModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,14 @@ protected function saveEmailIdentity(array $data): array
$user->password_hash = $this->tempUser->password_hash ?? '';

$user->saveEmailIdentity();
$this->tempUser = null;

return $data;
}

// Update
$this->tempUser->saveEmailIdentity();
$this->tempUser = null;

return $data;
}
Expand Down

0 comments on commit 1ecdbdd

Please sign in to comment.