Display form to enter OTP code
This commit is contained in:
24
templates/login/opt_input.html
Normal file
24
templates/login/opt_input.html
Normal file
@ -0,0 +1,24 @@
|
||||
{% 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">
|
||||
</div>
|
||||
|
||||
<button class="w-100 btn btn-lg btn-primary" type="submit" style="margin-top: 20px;">Login</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<div style="margin-top: 10px;">
|
||||
<a href="/2fa_auth?redirect=_p.redirect_uri">Sign in using another factor</a><br />
|
||||
<a href="/logout">Sign out</a>
|
||||
</div>
|
||||
|
||||
{% endblock content %}
|
Reference in New Issue
Block a user