diff --git a/resources/views/components/confirm-password.blade.php b/resources/views/components/confirm-password.blade.php new file mode 100644 index 0000000..b2c7dfb --- /dev/null +++ b/resources/views/components/confirm-password.blade.php @@ -0,0 +1,5 @@ +
+ + +

{{ $slot }} {{ __('Forgot your password?') }}

+
diff --git a/resources/views/components/confirm-second-factor.blade.php b/resources/views/components/confirm-second-factor.blade.php new file mode 100644 index 0000000..5eecd54 --- /dev/null +++ b/resources/views/components/confirm-second-factor.blade.php @@ -0,0 +1,9 @@ +@if (Auth::user()->has2FA()) +
+ + + +

$slot

+ +
+@endif diff --git a/resources/views/dashboard/user/profile/useraccount.blade.php b/resources/views/dashboard/user/profile/useraccount.blade.php index bf21354..fc6a7a8 100755 --- a/resources/views/dashboard/user/profile/useraccount.blade.php +++ b/resources/views/dashboard/user/profile/useraccount.blade.php @@ -60,21 +60,14 @@ @csrf @method('PATCH') -
- - -

{{ __('For your security, your password is always required for sensitive operations.') }} {{ __('Forgot your password?') }}

-
+ + {{ __('For your security, your password is always required for sensitive operations.') }} + - @if (Auth::user()->has2FA()) -
+ + {{ __('You cannot recover lost 2FA secrets.') }} + - - -

{{ __('You cannot recover lost 2FA secrets.') }}

- -
- @endif