Skip to content

Commit

Permalink
Fix missing deactivated notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Sep 20, 2024
1 parent a72f1e7 commit 137a8b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Pages/TwoFactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,6 @@ public function confirmTwoFactorAuthentication(ConfirmTwoFactorAuthentication $c

public function disableTwoFactorAuthentication(DisableTwoFactorAuthentication $disable): void
{
$disable($this->user);

if ($this->user->two_factor_confirmed_at) {
Notification::make()
->title(__('Two-Factor Authentication deactivated'))
Expand All @@ -366,6 +364,7 @@ public function disableTwoFactorAuthentication(DisableTwoFactorAuthentication $d
->duration(5000)
->send();
}
$disable($this->user);

$this->showingQrCode = false;
$this->showingConfirmation = false;
Expand Down

0 comments on commit 137a8b0

Please sign in to comment.