Display MFA setup to user who doesn't have MFA enabled
This commit is contained in:
parent
1d4e8368ab
commit
fa66a71880
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue