mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-30 00:43:16 +00:00
32 lines
No EOL
845 B
PHP
32 lines
No EOL
845 B
PHP
@extends('settings.template')
|
|
|
|
@section('section')
|
|
|
|
<div class="title">
|
|
<h3 class="font-weight-bold">Two-Factor Authentication Recovery Codes</h3>
|
|
</div>
|
|
|
|
<hr>
|
|
@if(count($codes) > 0)
|
|
<p class="lead pb-3">
|
|
Each code can only be used once.
|
|
</p>
|
|
<ul class="list-group">
|
|
@foreach($codes as $code)
|
|
<li class="list-group-item"><code>{{$code}}</code></li>
|
|
@endforeach
|
|
</ul>
|
|
@else
|
|
<div class="pt-5">
|
|
<h4 class="font-weight-bold">You are out of recovery codes</h4>
|
|
<p class="lead">Generate more recovery codes and store them in a safe place.</p>
|
|
<p>
|
|
<form method="post">
|
|
@csrf
|
|
<button type="submit" class="btn btn-primary font-weight-bold">Generate Recovery Codes</button>
|
|
</form>
|
|
</p>
|
|
</div>
|
|
@endif
|
|
|
|
@endsection |