diff --git a/src/newsreader/accounts/templates/accounts/components/login-form.html b/src/newsreader/accounts/templates/accounts/components/login-form.html index 87dceb9..3bfd952 100644 --- a/src/newsreader/accounts/templates/accounts/components/login-form.html +++ b/src/newsreader/accounts/templates/accounts/components/login-form.html @@ -1,17 +1,78 @@ {% extends "components/form/form.html" %} {% load i18n %} +{# TODO incorporate formtools wizard #} +{# TODO add support for other devices and backup tokens #} +{# see two_factor/templates/two_factor/core/login.html #} + +{% block intro %} +
{% blocktrans %}Enter your credentials.{% endblocktrans %}
+ {% elif wizard.steps.current == 'token' %} + {% if device.method == 'call' %} ++ {% blocktrans trimmed %} + We are calling your phone right now, please enter the digits you hear. + {% endblocktrans %} +
+ {% elif device.method == 'sms' %} ++ {% blocktrans trimmed %} + We sent you a text message, please enter the tokens we sent. + {% endblocktrans %} +
+ {% else %} ++ {% blocktrans trimmed %} + Please enter the tokens generated by your token generator. + {% endblocktrans %} +
+ {% endif %} + {% elif wizard.steps.current == 'backup' %} ++ {% blocktrans trimmed %} + Use this form for entering backup tokens for logging in. + These tokens have been generated for you to print and keep safe. Please + enter one of these backup tokens to login to your account. + {% endblocktrans %} +
+ {% endif %} +