BasicOIDC/templates/login/opt_input.html

24 lines
857 B
HTML
Raw Normal View History

2022-04-19 17:24:07 +00:00
{% extends "base_login_page.html" %}
{% block content %}
<div>
<p>Please go to your authenticator app <i>{{ factor.name }}</i>, generate a new code and enter it here:</p>
<form method="post" action="{{ factor.login_url(_p.redirect_uri) }}">
<div class="form-group">
<label for="code" class="form-label mt-4">Generated code</label>
<input type="text" name="code" minlength="6" maxlength="6" class="form-control" id="code"
placeholder="XXXXXX" autofocus>
2022-04-19 17:24:07 +00:00
</div>
2022-04-19 18:55:42 +00:00
<button class="w-100 btn btn-primary" type="submit" style="margin: 20px 0px;">Login</button>
2022-04-19 17:24:07 +00:00
</form>
</div>
<div style="margin-top: 10px;">
2022-04-19 17:30:14 +00:00
<a href="/2fa_auth?redirect={{ _p.redirect_uri.get_encoded() }}">Sign in using another factor</a><br />
2022-04-19 17:24:07 +00:00
<a href="/logout">Sign out</a>
</div>
{% endblock content %}