Skip to content

Commit 04b4b9c

Browse files
committed
only fire event when actually updating the database to disable two factor authentication
1 parent eb97f08 commit 04b4b9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Actions/DisableTwoFactorAuthentication.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public function __invoke($user)
2424
] + (Fortify::confirmsTwoFactorAuthentication() ? [
2525
'two_factor_confirmed_at' => null,
2626
] : []))->save();
27-
}
2827

29-
TwoFactorAuthenticationDisabled::dispatch($user);
28+
TwoFactorAuthenticationDisabled::dispatch($user);
29+
}
3030
}
3131
}

0 commit comments

Comments
 (0)