{% import 'sections/lang_menu.html' as langmenu with context %} {% if not setup_mode or reset_mode %}{{ langmenu.corner(html_lang) }}{% endif %} {% if force_change_mode %}
{{ _('Set your permanent password') }}

{{ _("You're using a temporary password. Set a permanent one to continue.") }}

{% if error %} {% endif %}
{% elif otp_mode %}
{{ _('Two-factor authentication') }}

{{ _('Enter the 6-digit code from your authenticator app.') }}

{% if error %} {% endif %}
{{ _('Reset 2FA') }}
{{ _('Run this command to disable 2FA: %(docker_exec_it)s %(podman_exec_it)s %(flask_reset_password)s', docker_exec_it=tag('code', 'docker exec -it traefik-manager flask reset-password --disable-otp'), podman_exec_it=tag('code', 'podman exec -it traefik-manager flask reset-password --disable-otp'), flask_reset_password=tag('code', 'flask reset-password --disable-otp')) }}
{% elif not setup_mode %}
{{ _('Sign in') }}
{% for category, message in get_flashed_messages(with_categories=true) %} {% endfor %} {% set show_local = local_auth_enabled | default(true) %}

{% if show_local %}{{ _('Enter your password to access Traefik Manager.') }}{% else %}{{ _('Sign in with your identity provider.') }}{% endif %}

{% if temp_password_hint and show_local %} {% endif %} {% if error %} {% endif %} {% if show_local %}
{% endif %} {% if oidc_enabled %} {% if show_local %}
{{ pgettext('label', 'or') }}
{% endif %} {{ _('Sign in with %(oidc_display_name)s', oidc_display_name=oidc_display_name) }} {% endif %} {% if show_local %}
{{ _('Reset password') }}
{{ _('Run this command and enter a new password when asked: %(docker_exec_it)s %(podman_exec_it)s %(flask_reset_password)s The password is not printed back. Log in with it straight away.', docker_exec_it=tag('code', 'docker exec -it traefik-manager flask reset-password --prompt'), podman_exec_it=tag('code', 'podman exec -it traefik-manager flask reset-password --prompt'), flask_reset_password=tag('code', 'flask reset-password --prompt')) }}
{% endif %}
{% else %} {% if reset_mode %}
{{ _('Set a new password') }}

{{ _('Your password was reset. Choose a new one to get back in - nothing else about your configuration has changed.') }}

{% if error %} {% endif %}
{% if otp_required %}
{% endif %}
{% else %}
{% endif %} {% endif %} {{ langmenu.script() }}