{% extends "_shell.html" %} {% block title %}{{ _("Two-factor sign-in") }} — ser2netweb{% endblock %} {% block main %}

{{ _("Two-factor sign-in") }}

{{ _("← Settings") }}
{% if ok %}{% endif %} {% if error %}{% endif %} {% if refusal %}

{{ refusal }}

{% elif enabled %}

{{ _("enabled") }} {{ _('Signing in as %(user)s takes your password and a code from your authenticator app.', user=me.username) }}

{{ _("Turn it off") }}

{% else %}

{{ _("With two-factor sign-in, signing in also takes a 6-digit code from an authenticator app on your phone or computer (any app for time-based codes, TOTP: Google or Microsoft Authenticator, Aegis, FreeOTP, KeePassXC …), so a password alone is not enough. The codes follow the clock: keep the time of this server right (NTP).") }}

  1. {{ _("In the app, add an account with this key (time-based):") }}
    {{ secret_grouped }}

    {{ _("Or give the app this link (some take it pasted; any QR code maker turns it into a code to scan):") }}

    {{ uri }}
  2. {{ _("Enter the code the app shows, and your password:") }}
{% endif %} {% if not refusal %}

{{ _('Lost the app or the device? An admin can turn two-factor sign-in off for you in Settings → Users. On the server, ser2netweb --set-password NAME sets a new password and turns it off — also for the only admin.') }}

{% endif %}
{% endblock %}