Skip to content

Commit

Permalink
Use getUser from AsbtractController
Browse files Browse the repository at this point in the history
  • Loading branch information
parijke committed Dec 21, 2023
1 parent 9e765a8 commit cc87da7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private function handleSmsChallenge(
string $exitRoute,
?string $secondFactorId = null
): Response {
$identity = $this->getIdentity();
$identity = $this->getUser()->getIdentity();
$this->assertNoRecoveryTokenOfType('sms', $identity);
if ($secondFactorId) {
$this->assertSecondFactorInPossession($secondFactorId, $identity);
Expand Down Expand Up @@ -110,7 +110,7 @@ private function handleSmsProofOfPossession(
$this->addFlash('notice', 'ss.registration.sms.alert.no_verification_state');
return $this->redirectToRoute('ss_recovery_token_sms');
}
$identity = $this->getIdentity();
$identity = $this->getUser()->getIdentity();
$this->assertNoRecoveryTokenOfType('sms', $identity);

if ($secondFactorId) {
Expand Down

0 comments on commit cc87da7

Please sign in to comment.