We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
DisableTwoFactorAuthentication
two_factor_confirmed_at
null
1 parent 74cd44b commit f2e738dCopy full SHA for f2e738d
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