Skip to content

Commit

Permalink
Remove sm prefixed classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Jan 21, 2025
1 parent 3144add commit 24ad052
Showing 1 changed file with 52 additions and 54 deletions.
106 changes: 52 additions & 54 deletions resources/views/two-factor.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,68 +40,66 @@

@if ($this->showTwoFactor())
<div class="px-4 py-6 sm:p-8">
<div class="grid max-w-2xl grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-6">
<div class="sm:col-span-6">
@if ($this->showQrCode)
<div class="text-center space-y-8 mb-4">
<div>
@unless ($showingQrCode)
<div class="font-bold">
{!! __('Two-Factor Authentication enabled') !!}
</div>
@else
<div class="font-bold">
{!! __('Or scan the QR code with your authenticator app') !!}.
</div>
<div class="flex items-center justify-center mt-2">
<div class="border-4 border-white">
{!! $user->twoFactorQrCodeSvg() !!}
</div>
<div class="grid max-w-2xl grid-cols-1 gap-x-6 gap-y-8">
@if ($this->showQrCode)
<div class="text-center space-y-8 mb-4">
<div>
@unless ($showingQrCode)
<div class="font-bold">
{!! __('Two-Factor Authentication enabled') !!}
</div>
@else
<div class="font-bold">
{!! __('Or scan the QR code with your authenticator app') !!}.
</div>
<div class="flex items-center justify-center mt-2">
<div class="border-4 border-white">
{!! $user->twoFactorQrCodeSvg() !!}
</div>
<br />
<p class="text-sm">
{!! __('The secret key to setup the authenticator app is') !!}: <br />
<span
class="font-bold mt-4">{{ decrypt($user->two_factor_secret) }}</span>
</p>
@endunless
</div>
</div>
<br />
<p class="text-sm">
{!! __('The secret key to setup the authenticator app is') !!}: <br />
<span
class="font-bold mt-4">{{ decrypt($user->two_factor_secret) }}</span>
</p>
@endunless
</div>
@endif
</div>
@endif

@if ($showingRecoveryCodes)
<div class="text-center text-sm">
{!! __(
'Save these recovery codes in a secure place as they can be used to recover access to your account if you lose your device',
) !!}.
<div class="flex items-center justify-center">
<div class="mt-2 text-left text-sm">
@foreach ((array) $user->recoveryCodes() as $index => $code)
<p class="mt-2">{{ $code }}</p>
@endforeach
</div>
@if ($showingRecoveryCodes)
<div class="text-center text-sm">
{!! __(
'Save these recovery codes in a secure place as they can be used to recover access to your account if you lose your device',
) !!}.
<div class="flex items-center justify-center">
<div class="mt-2 text-left text-sm">
@foreach ((array) $user->recoveryCodes() as $index => $code)
<p class="mt-2">{{ $code }}</p>
@endforeach
</div>
</div>
@endif
</div>
@endif

@if ($showingConfirmation)
<div class="mt-4">
{{ $this->otpCodeForm }}
</div>
@endif
@if ($showingConfirmation)
<div class="mt-4">
{{ $this->otpCodeForm }}
</div>
@endif

<div class="mt-6 flex items-center justify-end gap-x-6">
@if (!$showingRecoveryCodes && !$user->two_factor_confirmed_at)
{{ $this->disableAction() }}
@endif
<div class="mt-6 flex items-center justify-end gap-x-6">
@if (!$showingRecoveryCodes && !$user->two_factor_confirmed_at)
{{ $this->disableAction() }}
@endif

@if ($showingRecoveryCodes)
{{ $this->downloadAction() }}
{{ $this->regenerateAction() }}
@elseif ($showingConfirmation)
{{ $this->confirmAction() }}
@endif
</div>
@if ($showingRecoveryCodes)
{{ $this->downloadAction() }}
{{ $this->regenerateAction() }}
@elseif ($showingConfirmation)
{{ $this->confirmAction() }}
@endif
</div>
</div>
</div>
Expand Down

0 comments on commit 24ad052

Please sign in to comment.