2018-09-16 05:15:45 +00:00
|
|
|
@extends('layouts.blank')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="container mt-5">
|
|
|
|
<div class="row justify-content-center">
|
|
|
|
<div class="col-lg-5">
|
|
|
|
<div class="text-center">
|
|
|
|
<img src="/img/pixelfed-icon-color.svg" height="60px">
|
2020-04-21 02:23:09 +00:00
|
|
|
<p class="font-weight-light h3 py-4">Verify Two Factor Code</p>
|
|
|
|
</div>
|
|
|
|
<div class="alert alert-info small">
|
|
|
|
If you lose access to your 2FA device, contact the admins.
|
2018-09-16 05:15:45 +00:00
|
|
|
</div>
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
|
|
|
<form method="POST">
|
|
|
|
@csrf
|
|
|
|
|
|
|
|
<div class="form-group row">
|
|
|
|
|
|
|
|
<div class="col-md-12">
|
2020-05-20 03:19:39 +00:00
|
|
|
<input id="code" type="text" class="form-control{{ $errors->has('code') ? ' is-invalid' : '' }}" name="code" placeholder="{{__('Two-Factor Authentication Code')}}" required autocomplete="off" autofocus="" inputmode="numeric" minlength="6">
|
2018-09-16 05:15:45 +00:00
|
|
|
|
|
|
|
@if ($errors->has('code'))
|
|
|
|
<span class="invalid-feedback">
|
|
|
|
<strong>{{ $errors->first('code') }}</strong>
|
|
|
|
</span>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group row mb-0">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<button type="submit" class="btn btn-success btn-block font-weight-bold">
|
|
|
|
{{ __('Verify') }}
|
|
|
|
</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-21 02:23:09 +00:00
|
|
|
<div class="d-flex justify-content-between pt-4 small">
|
2020-07-26 04:40:35 +00:00
|
|
|
<span class="text-lighter text-decoration-none">Logged in as: <span class="font-weight-bold text-muted">{{Auth::user()->username}}</span></span>
|
2020-04-21 02:23:09 +00:00
|
|
|
<span>
|
|
|
|
<a class="text-decoration-none text-muted font-weight-bold" href="{{ route('logout') }}" onclick="event.preventDefault();document.getElementById('logout-form').submit();">Logout</a>
|
|
|
|
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
|
|
|
@csrf
|
|
|
|
</form>
|
|
|
|
</span>
|
|
|
|
</div>
|
2018-09-16 05:15:45 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|