forked from mirror/pixelfed
Update 2fa checkpoint view design
This commit is contained in:
parent
506f95c6b1
commit
86c472ac19
1 changed files with 58 additions and 45 deletions
|
@ -1,55 +1,68 @@
|
||||||
@extends('layouts.blank')
|
@extends('layouts.blank')
|
||||||
|
|
||||||
|
@push('styles')
|
||||||
|
<link href="{{ mix('css/landing.css') }}" rel="stylesheet">
|
||||||
|
<link rel="preload" as="image" href="{{ url('/_landing/bg.jpg')}}" />
|
||||||
|
@endpush
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="container mt-5">
|
<div class="page-wrapper">
|
||||||
<div class="row justify-content-center">
|
<div class="container mt-5">
|
||||||
<div class="col-lg-5">
|
<div class="row justify-content-center">
|
||||||
<div class="text-center">
|
<div class="col-lg-5">
|
||||||
<img src="/img/pixelfed-icon-color.svg" height="60px">
|
<div class="text-center">
|
||||||
<p class="font-weight-light h3 py-4">Verify Two Factor Code</p>
|
<a href="/">
|
||||||
</div>
|
<img src="/img/pixelfed-icon-white.svg" height="60px">
|
||||||
<div class="alert alert-info small">
|
</a>
|
||||||
If you lose access to your 2FA device, contact the admins.
|
<h1 class="pt-4 pb-1">2FA Checkpoint</h1>
|
||||||
</div>
|
<p class="font-weight-light lead">
|
||||||
<div class="card">
|
Enter the 2FA code from your device.
|
||||||
<div class="card-body">
|
</p>
|
||||||
<form method="POST">
|
<p class="text-muted small pb-3">
|
||||||
@csrf
|
If you lose access to your 2FA device, contact the admins.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div class="card bg-glass">
|
||||||
|
<div class="card-body">
|
||||||
|
<form method="POST">
|
||||||
|
@csrf
|
||||||
|
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
|
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<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">
|
<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">
|
||||||
|
|
||||||
@if ($errors->has('code'))
|
@if ($errors->has('code'))
|
||||||
<span class="invalid-feedback">
|
<span class="invalid-feedback">
|
||||||
<strong>{{ $errors->first('code') }}</strong>
|
<strong>{{ $errors->first('code') }}</strong>
|
||||||
</span>
|
</span>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group row mb-0">
|
<div class="form-group row mb-0">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<button type="submit" class="btn btn-success btn-block font-weight-bold">
|
<button type="submit" class="btn btn-success btn-block rounded-pill font-weight-bold">
|
||||||
{{ __('Verify') }}
|
{{ __('Verify') }}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="d-flex justify-content-between pt-4 small">
|
<div class="d-flex justify-content-between my-3">
|
||||||
<span class="text-lighter text-decoration-none">Logged in as: <span class="font-weight-bold text-muted">{{Auth::user()->username}}</span></span>
|
<p class="mb-0 small">
|
||||||
<span>
|
<span class="text-muted">Logged in as:</span> {{request()->user()->username}}
|
||||||
<a class="text-decoration-none text-muted font-weight-bold" href="{{ route('logout') }}" onclick="event.preventDefault();document.getElementById('logout-form').submit();">Logout</a>
|
</p>
|
||||||
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
|
||||||
@csrf
|
<form action="/logout" method="post">
|
||||||
</form>
|
@csrf
|
||||||
</span>
|
<button type="submit" class="btn btn-link p-0 btn-sm text-white font-weight-bold">Logout</button>
|
||||||
</div>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
Loading…
Reference in a new issue