mirror of
https://github.com/simple-login/app.git
synced 2024-11-18 01:40:38 +01:00
38d305da23
* Bypass 2FA if Login with Proton * Fix formatting of template
32 lines
1.2 KiB
HTML
32 lines
1.2 KiB
HTML
{% extends "default.html" %}
|
|
|
|
{% set active_page = "setting" %}
|
|
{% block title %}SUDO MODE{% endblock %}
|
|
{% block default_content %}
|
|
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<h1 class="h2">Entering Sudo Mode</h1>
|
|
<p>The next page contains security related setting.</p>
|
|
<p>Please enter your account password so that we can ensure it's you.</p>
|
|
<form method="post">
|
|
{{ password_check_form.csrf_token }}
|
|
<div class="font-weight-bold mt-5">Password</div>
|
|
{{ password_check_form.password(class="form-control", autofocus="true") }}
|
|
{{ render_field_errors(password_check_form.password) }}
|
|
<button class="btn btn-lg btn-danger mt-2">Submit</button>
|
|
</form>
|
|
{% if connect_with_proton %}
|
|
|
|
<div class="my-3">
|
|
<p>Alternatively you can use your Proton credentials to ensure it's you.</p>
|
|
</div>
|
|
<a class="btn btn-primary btn-block mt-2 proton-button w-25"
|
|
href="{{ url_for("auth.proton_login", next=next) }}">
|
|
<img class="mr-2" src="/static/images/proton.svg" />
|
|
Authenticate with Proton
|
|
</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|