mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-08 20:49:10 -06:00
132 lines
4.7 KiB
PHP
132 lines
4.7 KiB
PHP
@extends('layout.default')
|
|
|
|
@section('title')
|
|
<title>{{ $user->username }} - Security - {{ __('common.members') }} - {{ config('other.title') }}</title>
|
|
@endsection
|
|
|
|
@section('breadcrumbs')
|
|
<li class="breadcrumbV2">
|
|
<a href="{{ route('users.show', ['username' => $user->username]) }}" class="breadcrumb__link">
|
|
{{ $user->username }}
|
|
</a>
|
|
</li>
|
|
<li class="breadcrumbV2">
|
|
<a href="{{ route('users.general_settings.edit', ['user' => $user]) }}" class="breadcrumb__link">
|
|
{{ __('user.settings') }}
|
|
</a>
|
|
</li>
|
|
<li class="breadcrumb--active">
|
|
{{ __('user.passkey') }}
|
|
</li>
|
|
@endsection
|
|
|
|
@section('nav-tabs')
|
|
@include('user.buttons.user')
|
|
@endsection
|
|
|
|
@section('main')
|
|
@if (session('status') == 'two-factor-authentication-enabled')
|
|
<section class="panelV2">
|
|
<h2 class="panel__heading">{{ __('common.configuration') }}</h2>
|
|
<div class="panel__body">
|
|
Please finish configuring two factor authentication:
|
|
{!! auth()->user()->twoFactorQrCodeSvg() !!}
|
|
<form
|
|
class="form"
|
|
action="{{ route('two-factor.confirm') }}"
|
|
method="POST"
|
|
>
|
|
<p class="form__group">
|
|
<input
|
|
type="text"
|
|
class="form__checkbox"
|
|
id="code"
|
|
name="code"
|
|
/>
|
|
</p>
|
|
<p class="form__group">
|
|
<button class="form__button form__button--filled">
|
|
{{ __('common.save') }}
|
|
</button>
|
|
</p>
|
|
</form>
|
|
Recovery codes:
|
|
<ul>
|
|
@foreach(auth()->user()->recoveryCodes() as $code)
|
|
<li>$code</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
</section>
|
|
@endif
|
|
<section class="panelV2">
|
|
<h2 class="panel__heading">Email-based Two Step Authentication</h2>
|
|
<div class="panel__body">
|
|
<form
|
|
class="form"
|
|
action="{{ route('users.two_step.update', ['user' => $user]) }}"
|
|
method="POST"
|
|
>
|
|
@csrf
|
|
@method('PATCH')
|
|
<p>Upon enabling, you will receive an email including a code to your registered email address.</p>
|
|
<p>Token-based two factor authentication is planned for a future update.</p>
|
|
<p class="form__group">
|
|
<input type="hidden" name="twostep" value="0">
|
|
<input
|
|
type="checkbox"
|
|
class="form__checkbox"
|
|
id="twostep"
|
|
name="twostep"
|
|
value="1"
|
|
@checked($user->twostep)
|
|
>
|
|
<label class="form__label" for="internal">Enable two-step authentication</label>
|
|
</p>
|
|
<p class="form__group">
|
|
<button class="form__button form__button--filled">
|
|
{{ __('common.save') }}
|
|
</button>
|
|
</p>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
<section class="panelV2">
|
|
<h2 class="panel__heading">Enable Two Factor Authentication</h2>
|
|
<div class="panel__body">
|
|
<form
|
|
class="form"
|
|
action="{{ route('two-factor.enable') }}"
|
|
method="POST"
|
|
>
|
|
@csrf
|
|
<p>Requires password confirmation</p>
|
|
<p>Upon enabling, you will be required to enter a valid two factor authentication code.</p>
|
|
<p class="form__group">
|
|
<button class="form__button form__button--filled">
|
|
{{ __('common.enable') }}
|
|
</button>
|
|
</p>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
<section class="panelV2">
|
|
<h2 class="panel__heading">Disable Two Factor Authentication</h2>
|
|
<form
|
|
class="form"
|
|
action="{{ route('two-factor.disable') }}"
|
|
method="POST"
|
|
>
|
|
@csrf
|
|
@method('DELETE')
|
|
<p>Requires password confirmation.</p>
|
|
<p class="form__group">
|
|
<button class="form__button form__button--filled">
|
|
{{ __('common.disable') }}
|
|
</button>
|
|
</p>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
@endsection
|