2021-06-28 23:02:45 +02:00
|
|
|
@extends('simple-layout')
|
|
|
|
|
|
|
|
@section('body')
|
|
|
|
<div class="container small py-xl">
|
|
|
|
|
|
|
|
<div class="card content-wrap auto-height">
|
|
|
|
<h1 class="list-heading">Setup Multi-Factor Authentication</h1>
|
2021-06-29 23:06:49 +02:00
|
|
|
<p class="mb-none">
|
2021-06-28 23:02:45 +02:00
|
|
|
Setup multi-factor authentication as an extra layer of security
|
|
|
|
for your user account.
|
|
|
|
</p>
|
2021-06-29 23:06:49 +02:00
|
|
|
|
|
|
|
<div class="setting-list">
|
|
|
|
<div class="grid half gap-xl">
|
|
|
|
<div>
|
|
|
|
<div class="setting-list-label">Mobile App</div>
|
|
|
|
<p class="small">
|
|
|
|
To use multi-factor authentication you'll need a mobile application
|
|
|
|
that supports TOTP such as Google Authenticator, Authy or Microsoft Authenticator.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="pt-m">
|
2021-06-30 23:10:02 +02:00
|
|
|
@if($userMethods->has('totp'))
|
|
|
|
<div class="text-pos">
|
|
|
|
@icon('check-circle')
|
|
|
|
Already configured
|
|
|
|
</div>
|
2021-08-02 23:02:25 +02:00
|
|
|
<a href="{{ url('/mfa/totp/generate') }}" class="button outline small">Reconfigure</a>
|
2021-07-14 22:27:21 +02:00
|
|
|
<div component="dropdown" class="inline relative">
|
|
|
|
<button type="button" refs="dropdown@toggle" class="button outline small">Remove</button>
|
|
|
|
<div refs="dropdown@menu" class="dropdown-menu">
|
|
|
|
<p class="text-neg small px-m mb-xs">Are you sure you want to remove this multi-factor authentication method?</p>
|
|
|
|
<form action="{{ url('/mfa/remove/totp') }}" method="post">
|
|
|
|
{{ csrf_field() }}
|
|
|
|
{{ method_field('delete') }}
|
|
|
|
<button class="text-primary small delete">{{ trans('common.confirm') }}</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-06-30 23:10:02 +02:00
|
|
|
@else
|
2021-08-02 23:02:25 +02:00
|
|
|
<a href="{{ url('/mfa/totp/generate') }}" class="button outline">Setup</a>
|
2021-06-30 23:10:02 +02:00
|
|
|
@endif
|
2021-06-29 23:06:49 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="grid half gap-xl">
|
|
|
|
<div>
|
|
|
|
<div class="setting-list-label">Backup Codes</div>
|
|
|
|
<p class="small">
|
2021-07-02 21:53:33 +02:00
|
|
|
Securely store a set of one-time-use backup codes
|
2021-06-29 23:06:49 +02:00
|
|
|
which you can enter to verify your identity.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="pt-m">
|
2021-07-02 21:53:33 +02:00
|
|
|
@if($userMethods->has('backup_codes'))
|
|
|
|
<div class="text-pos">
|
|
|
|
@icon('check-circle')
|
|
|
|
Already configured
|
|
|
|
</div>
|
2021-08-02 23:02:25 +02:00
|
|
|
<a href="{{ url('/mfa/backup_codes/generate') }}" class="button outline small">Reconfigure</a>
|
2021-07-14 22:27:21 +02:00
|
|
|
<div component="dropdown" class="inline relative">
|
|
|
|
<button type="button" refs="dropdown@toggle" class="button outline small">Remove</button>
|
|
|
|
<div refs="dropdown@menu" class="dropdown-menu">
|
|
|
|
<p class="text-neg small px-m mb-xs">Are you sure you want to remove this multi-factor authentication method?</p>
|
|
|
|
<form action="{{ url('/mfa/remove/backup_codes') }}" method="post">
|
|
|
|
{{ csrf_field() }}
|
|
|
|
{{ method_field('delete') }}
|
|
|
|
<button class="text-primary small delete">{{ trans('common.confirm') }}</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-07-02 21:53:33 +02:00
|
|
|
@else
|
2021-08-02 23:02:25 +02:00
|
|
|
<a href="{{ url('/mfa/backup_codes/generate') }}" class="button outline">Setup</a>
|
2021-07-02 21:53:33 +02:00
|
|
|
@endif
|
2021-06-29 23:06:49 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-06-28 23:02:45 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@stop
|