Skip to content

Commit 064784e

Browse files
committed
Add confirmation prompt for disabling Two-Factor Authentication
1 parent 57c8fa0 commit 064784e

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

resources/views/livewire/security/two-factor.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class="xs:max-w-30 ml-auto w-full text-xs/3"
5050
<x-button
5151
class="xs:max-w-30 ml-auto w-full text-xs/3"
5252
wire:click="disableTwoFactor"
53+
wire:confirm="Are you sure to disable 2FA in your account? This action can't be undone!"
5354
wire:loading.attr="disabled"
5455
>
5556
Disable 2FA

resources/views/livewire/users/profile.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ class="xs:max-w-30 ml-auto w-full text-xs/3"
110110
<x-button
111111
class="xs:max-w-30 ml-auto w-full text-xs/3"
112112
wire:click="disableTwoFactor"
113+
wire:confirm="Are you sure to disable 2FA for this account? This action can't be undone!"
113114
wire:loading.attr="disabled"
114115
>
115116
Disable 2FA

0 commit comments

Comments
 (0)