{% 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 %}

Two-factor authentication

{% if enrol.is_some() %}setting up{% else if me.totp_enabled() %}✔ on{% else %}○ off{% endif %}
{% if let Some((secret, uri, qr)) = enrol %}

Scan this with your authenticator app, then enter the code it shows.

{{ qr|safe }}

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

{% else if me.totp_enabled() %}

A code from your authenticator app is asked for at every sign in.

{% else %}

With it on, 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 %}

Signed in

{{ sessions.len() }}
{% if sessions.is_empty() %}

No sessions.

{% else %} {% endif %}

A session ends by itself after 14 days unused, or 30 days after signing in.

{% endblock %}