diff --git a/deploy/html/user_login_secondfactor.html b/deploy/html/user_login_secondfactor.html index 75eb91d..d07a42b 100644 --- a/deploy/html/user_login_secondfactor.html +++ b/deploy/html/user_login_secondfactor.html @@ -1,28 +1,50 @@ {%- extends "viur_base.html" %} {%- block content %} - {% if action == "otp" %} -
{% translate "user_second_factor_invalid_token", "The entered token was invalid!" %}
++ {% translate "user_second_factor_unimplemented", "Unimplemented second factor action:" %} {{ name }} + ({{ action_name }}) +
+ {% endif %} {%- endblock content %} diff --git a/deploy/html/user_second_factor_choice.html b/deploy/html/user_second_factor_choice.html new file mode 100644 index 0000000..78abe13 --- /dev/null +++ b/deploy/html/user_second_factor_choice.html @@ -0,0 +1,17 @@ +{%- extends "viur_base.html" %} + +{%- block content %} +{% translate "user_second_factor_choice_text", "Your account is secured by a second factor. Please choose with which one you want to continue the login." %}
+ +
+ {% translate "user_second_factor_choice_list", "Available factors" %}
+
+ {% for second_factor in second_factors %}
+ {{ translate(second_factor.NAME) }}
+ {% if not loop.last %}
{% endif %}
+ {% endfor %}
+
{% translate "user_second_factor_add_authenticator_otp_text", "Please scan the QR code below with your authentication app (Google Authenticator, Authy, ...) and then enter the OTP token in the field below to confirm successful setup." %}
+ + + {{ qrcode(otp_uri) }} + + + + {% else %} ++ {% translate "user_second_factor_unimplemented", "Unimplemented second factor action:" %} {{ name }} + ({{ action_name }}) +
+ {% endif %} +{%- endblock content %} diff --git a/deploy/html/user_secondfactor_add_success.html b/deploy/html/user_secondfactor_add_success.html new file mode 100644 index 0000000..2664f69 --- /dev/null +++ b/deploy/html/user_secondfactor_add_success.html @@ -0,0 +1,15 @@ +{% extends "viur_base.html" %} + +{% block content %} +{% translate "user_second_factor_add_success_text", "Your second factor has been successfully added." %}
+