checkpoint.blade.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. @extends('layouts.blank')
  2. @section('content')
  3. <div class="container mt-5">
  4. <div class="row justify-content-center">
  5. <div class="col-lg-5">
  6. <div class="text-center">
  7. <img src="/img/pixelfed-icon-color.svg" height="60px">
  8. <p class="font-weight-light h3 py-4">Verify Two Factor Code</p>
  9. </div>
  10. <div class="alert alert-info small">
  11. If you lose access to your 2FA device, contact the admins.
  12. </div>
  13. <div class="card">
  14. <div class="card-body">
  15. <form method="POST">
  16. @csrf
  17. <div class="form-group row">
  18. <div class="col-md-12">
  19. <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">
  20. @if ($errors->has('code'))
  21. <span class="invalid-feedback">
  22. <strong>{{ $errors->first('code') }}</strong>
  23. </span>
  24. @endif
  25. </div>
  26. </div>
  27. <div class="form-group row mb-0">
  28. <div class="col-md-12">
  29. <button type="submit" class="btn btn-success btn-block font-weight-bold">
  30. {{ __('Verify') }}
  31. </button>
  32. </div>
  33. </div>
  34. </form>
  35. </div>
  36. </div>
  37. <div class="d-flex justify-content-between pt-4 small">
  38. <span class="text-lighter text-decoration-none">Logged in as: <span class="font-weight-bold text-muted">{{Auth::user()->username}}</span></span>
  39. <span>
  40. <a class="text-decoration-none text-muted font-weight-bold" href="{{ route('logout') }}" onclick="event.preventDefault();document.getElementById('logout-form').submit();">Logout</a>
  41. <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
  42. @csrf
  43. </form>
  44. </span>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. @endsection