Display MFA setup to user who doesn't have MFA enabled

This commit is contained in:
Son NK 2019-12-27 15:24:04 +01:00 committed by Son Nguyen Kim
parent 1d4e8368ab
commit fa66a71880
1 changed files with 10 additions and 1 deletions

View File

@ -48,8 +48,17 @@
<button class="btn btn-primary">Update</button>
</form>
<hr>
{% if not current_user.enable_otp %}
<hr>
<h3 class="mb-0">Multi-Factor Authentication</h3>
<div class="small-text mb-3">
Secure your account with Multi-Factor Authentication.
This requires having applications like Google Authenticator, Authy, FreeOTP, etc.
</div>
<a href="{{ url_for('dashboard.mfa_setup') }}" class="btn btn-outline-primary">Enable</a>
{% endif %}
<hr>
<h3 class="mb-0">Change password</h3>
<div class="small-text mb-3">You will receive an email containing instructions on how to change password.</div>
<form method="post">