Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add templates for second factor user authentication #102

Merged
21 changes: 21 additions & 0 deletions deploy/html/user_secondfactor_add.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{%- extends "viur_base.html" %}

{%- block content %}
<h1 class="headline">Add Second Factor</h1>
<p>Please scan the QR code with your Authenticator App and Enter the OTP token in the input below</p>

<a href="{{ otp_uri }}">
{{otp_uri_to_qrcode(otp_uri)}}
</a>

<form method="POST" action="/user/f2_authenticatorotp/add">
<input name="skey" type="hidden" value="{{ getSecurityKey() }}">

<div class="input-group">
<label class="label" for="otp">OTP Token</label>
<input class="input" id="otp" name="otp" type="text" placeholder="OTP Token">
</div>

<input class="btn btn--primary" type="submit" value="Validate Second Factor">
</form>
{%- endblock content %}
16 changes: 16 additions & 0 deletions deploy/html/user_secondfactor_add_success.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{% extends "viur_base.html" %}

{% block content %}
<h1 class="headline">Second Factor</h1>

<div class="msg msg--success is-active">
{{ embedSvg("icon-check") }}
<div class="msg-content">
<h3 class="msg-headline">Second Factor Add success !</h3>
<p>Your Second Factor has been added successfully.</p>
</div>
</div>

<a href="/user/auth_userpassword/login">Login</a>

{% endblock %}