Skip to content
Snippets Groups Projects
Commit 365477ff authored by Dennis ASAMOAH's avatar Dennis ASAMOAH
Browse files

improve longin template

parent 6ea3636e
No related branches found
No related tags found
1 merge request!466Add webauth
Pipeline #99384 failed
......@@ -11,6 +11,12 @@
{% elif device.method == 'sms' %}
<p class="login-box-msg">{% blocktrans %}We sent you a text message, please enter the tokens we
sent.{% endblocktrans %}</p>
{% elif device.public_id %}
<p class="login-box-msg">{% blocktrans %}Please insert your YubiKey and touch it to authenticate.
{% endblocktrans %}</p>
{% elif device.public_key %}
<p class="login-box-msg">{% blocktrans %}Please verify your identity using your security key or biometric device.
{% endblocktrans %}</p>
{% else %}
<p class="login-box-msg">{% blocktrans %}Please enter the tokens generated by your token
generator.{% endblocktrans %}</p>
......@@ -28,13 +34,15 @@
<div style="margin-left: -9999px"><input type="submit" value=""/></div>
{% if other_devices %}
<p>{% trans "Or, alternatively, use one of your backup phones:" %}</p>
<p>{% trans "Or, alternatively, use one of your backup phones:" %}</p>
<p>
{% for other in other_devices %}
<button name="challenge_device" value="{{ other.persistent_id }}"
class="btn btn-default btn-block" type="submit">
{{ other|as_action }}
</button>
{% if other.method == 'call' or other.method == 'sms' %}
<button name="challenge_device" value="{{ other.persistent_id }}"
class="btn btn-default btn-block" type="submit">
{{ other|as_action }}
</button>
{% endif %}
{% endfor %}</p>
{% endif %}
{% if backup_tokens %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment