MarseyWorld/files/templates/login_2fa.html

83 lines
2.4 KiB
HTML
Raw Normal View History

{%- import 'util/helpers.html' as help -%}
{%- import 'html_head.html' as html_head with context -%}
2022-05-04 23:09:46 +00:00
<!DOCTYPE html>
<html lang="en">
{{html_head.html_head(false, false, false, none, none, '', '', false)}}
2022-05-04 23:09:46 +00:00
<head>
<body id="login">
<div class="container-fluid position-absolute h-100 p-0 overflow-auto">
<div class="row no-gutters h-100">
<div class="col-12 col-md-6 my-auto p-3">
<div class="row justify-content-center">
<div class="col-10 col-md-7">
<div class="mb-5">
<a href="/" class="text-decoration-none"><span class="h3 text-primary"></span></a>
</div>
<div id="login-form" class="">
<h1 class="h2">Two-step login</h1>
<p class="text-muted mb-md-5">To login, please enter the 6-digit verification code generated in your authenticator app.</p>
{% if failed %}
<div class="alert alert-danger alert-dismissible fade show d-flex my-3" role="alert">
<i class="fas fa-exclamation-circle my-auto"></i>
<div>
Invalid verification code. Please try again.
</div>
2022-10-28 23:35:14 +00:00
<button type="button" class="close" data-bs-dismiss="alert" aria-label="Close">
2022-05-04 23:09:46 +00:00
<span aria-hidden="true">&times;</span>
</button>
</div>
{% endif %}
<form action="/login" method="post" class="mt-md-3" id="login">
<input type="hidden" name="username" value="{{v.username}}">
<input type="hidden" name="redirect" value="{{redirect}}">
<input type="hidden" name="time" value="{{time}}">
<input type="hidden" name="hash" value="{{hash}}">
<label for="2fa_token" class="mt-3">Your verification code</label>
<input autocomplete="off" class="form-control" id="2fa_token" name="2fa_token" type="text" placeholder="6-digit code">
<small><a href="/lost_2fa">Lost your 2FA device?</a></small>
2022-10-28 23:35:14 +00:00
<button type="button" class="btn btn-primary login w-100 mt-3" id="login_button">Sign in</button>
2022-05-04 23:09:46 +00:00
</form>
</div>
</div>
</div>
</div>
2022-10-23 17:57:38 +00:00
<div class="col-12 col-md-6 d-mob-none">
2022-05-04 23:09:46 +00:00
<div class="splash-wrapper">
<div class="splash-overlay"></div>
<img alt="cover" loading="lazy" class="splash-img" src="{{'cover.webp' | asset_siteimg}}"></img>
2022-05-04 23:09:46 +00:00
</div>
</div>
</div>
</div>
</body>
</html>