{% extends "base.html" %} {% import "_page.html" as page_ui %} {% block title %}Spark - Account Security{% endblock %} {% block content %}
{{ page_ui.header("Account security", "The second factors you sign in with: passkeys, security keys and an authenticator app.") }} {% include "_page_messages.html" %} {% if recovery_codes %}

{% if codes_for == "passkey" %}Your passkey is registered.{% elif codes_for == "replaced" %}Your recovery codes are replaced. Every earlier code no longer works.{% else %}Your authenticator app is set up.{% endif %}

{% include "_recovery_codes.html" %} I have saved my codes
{% elif secret %}

Scan the code with an authenticator app, or enter the key by hand, then type the six-digit code it shows.

{% include "_totp_enrolment.html" %}
{% else %}
How you sign in
Your sign-in method{{ in_force_label(sign_in_state.effective, sso_available) }}
Set by{% if sign_in_state.setting is none %}The default for everyone{% else %}An administrator, for you{% endif %}
{% if sign_in_state.pending %}
An administrator is changing how you sign in to {{ in_force_label(sign_in_state.pending.to_method, sso_available) }}. Until then you keep signing in with {{ in_force_label(sign_in_state.pending.from_method, sso_available) }}. {% if sign_in_state.pending.link == "set_password" %}Set a password with the link emailed to you to finish the change. {% elif sign_in_state.pending.link == "passkey_registration" %}Register a passkey with the link emailed to you to finish the change. {% else %}It finishes the first time you sign in through single sign-on.{% endif %}
{% endif %}
Passkeys and security keys
{% if passkeys %}
{% for key in passkeys %} {% endfor %}
NameKindAddedLast used
{{ key_kind(key) }} {{ key.created_at.strftime("%Y-%m-%d") }} {{ key.last_used_at.strftime("%Y-%m-%d") if key.last_used_at else "never" }}
{% else %}

No passkeys or security keys are registered.

{% endif %} {% if webauthn %}
{% else %}

Passkeys and security keys cannot be used on this server.

{% endif %}
Authenticator app
{% if mfa_enrolled %}

An authenticator app is set up. To replace it, ask an administrator to reset it.

{% else %}

No authenticator app is set up.

{% endif %}
{% if has_factor %}
Recovery codes

Each recovery code works once, if you lose your authenticator app or passkey. Replacing them makes every earlier code stop working, and the new codes are shown once.

{% if fresh_needed %}
{% endif %}
{% endif %} {% endif %}
{% endblock %} {% block scripts %}{% endblock %}