Skip to content

Commit

Permalink
only fire event when actually updating the database to disable two fa…
Browse files Browse the repository at this point in the history
…ctor authentication
  • Loading branch information
taylorotwell committed Dec 9, 2022
1 parent eb97f08 commit 04b4b9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Actions/DisableTwoFactorAuthentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public function __invoke($user)
] + (Fortify::confirmsTwoFactorAuthentication() ? [
'two_factor_confirmed_at' => null,
] : []))->save();
}

TwoFactorAuthenticationDisabled::dispatch($user);
TwoFactorAuthenticationDisabled::dispatch($user);
}
}
}

0 comments on commit 04b4b9c

Please sign in to comment.