{% extends "base.html" %} {% import "settings_tabs.html" as t %} {% block title %}Security{% endblock %} {% block tabs %}{% call t::tabs("security") %}{% endblock %} {% block content %}

Security two-factor authentication and sessions

{% if let Some(n) = notice %}

{{ n }}

{% endif %} {% if let Some(e) = error %}

{{ e }}

{% endif %} {% if !recovery.is_empty() %}

Recovery codes

{% endif %} {% if let Some((secret, uri, qr)) = enrol %}

Scan, then enter the code

{{ qr|safe }}

Or enter the secret by hand: {{ secret }}

{% else if me.totp_enabled() %}

✔ Two-factor authentication is on

{% else %}

○ Two-factor authentication is off

A time-based code from an authenticator app is asked for at every sign in.

{% endif %} {% if !connected.is_empty() %}

Connected accounts

Sign in with these instead of a password.

{% endif %}

Sessions

Sign out every browser except this one.

{% endblock %}