We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DisableTwoFactorAuthentication
two_factor_confirmed_at
null
1 parent 74cd44b commit ee35e5bCopy full SHA for ee35e5b
src/Actions/DisableTwoFactorAuthentication.php
@@ -21,7 +21,7 @@ public function __invoke($user)
21
$user->forceFill([
22
'two_factor_secret' => null,
23
'two_factor_recovery_codes' => null,
24
- ] + (Fortify::confirmsTwoFactorAuthentication() ? [
+ ] + (Fortify::confirmsTwoFactorAuthentication() || ! is_null($user->two_factor_confirmed_at) ? [
25
'two_factor_confirmed_at' => null,
26
] : []))->save();
27
0 commit comments