49 lines
1.4 KiB
PHP
49 lines
1.4 KiB
PHP
@extends('marketing.auth')
|
|
|
|
@section('content')
|
|
<div class="container">
|
|
<form action="{{ session('oauth') ? route('oauth.validate2fa') : route('validate2fa') }}" method="post">
|
|
|
|
<div class="row">
|
|
<div class="col-12 col-md-6 offset-md-3 offset-md-3-right">
|
|
<div class="signup-box">
|
|
|
|
<div class="dt w-100">
|
|
<div class="dtc tc">
|
|
<img src="img/monica.svg" width="97" height="88" alt="">
|
|
</div>
|
|
</div>
|
|
<h2>{{ trans('auth.2fa_title') }}</h2>
|
|
|
|
@include ('partials.errors')
|
|
|
|
@csrf
|
|
|
|
<h3>{{ trans('auth.mfa_auth_webauthn') }}</h3>
|
|
<webauthn-connector
|
|
:method="'login'"
|
|
:public-key="{{ \Safe\json_encode($publicKey) }}"
|
|
>
|
|
</webauthn-connector>
|
|
|
|
@if (app('pragmarx.google2fa')->isActivated())
|
|
<div class="mt5">
|
|
<h3>{{ trans('auth.mfa_auth_otp') }}</h3>
|
|
@include ('partials.auth.validate2fa')
|
|
</div>
|
|
@endif
|
|
|
|
<div class="form-group links">
|
|
<ul>
|
|
<li>{!! trans('auth.use_recovery', ['url' => route('recovery.login')]) !!}</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
|
|
@endsection
|