{% extends 'base.html' %} {% block body %} {# Modal for reset password #} {# LOGIN ANNOUNCEMENT #} {% if App.Config.configArr.login_announcement %} {{ App.Config.configArr.login_announcement|msg('warning', false) }} {% endif %}
logo elabftw {# Allow non existing user to request access to a team #} {% if App.Session.has('initial_team_selection_required') %}

{{ 'Request access to a team'|trans }}


{{ App.Session.get('csrf')|csrf }}
{# Allow existing user to request access to a team #} {% elseif App.Session.has('team_request_selection_required') %}

{{ 'Request access to a team'|trans }}


{{ App.Session.get('csrf')|csrf }}
{# Show message when initial team selection is done #} {% elseif App.Session.has('teaminit_done') %} {% if App.Session.get('teaminit_done_need_validation') == '1' %} {{ 'Your account has been created and will need to be validated by an admin.'|trans|msg('ok') }} {% else %} {{ 'Your account has been created and is now active. Try logging in again.'|trans|msg('ok') }} {{ 'Continue'|trans }} {% endif %} {% elseif App.Session.has('team_selection_required') %}
{% if App.Session.get('rememberme') == '1' %} {% endif %} {{ App.Session.get('csrf')|csrf }}
{% elseif App.Request.server.get(App.Config.configArr.extauth_remote_user) %} {# user is already authed with external auth, so just present a continue button we don't autologin anymore #}
{{ App.Session.get('csrf')|csrf }}

{{ 'You are already authenticated'|trans }}


{% else %} {% if showLocal or App.Config.configArr.ldap_toggle %} {# Login form , the id is for an acceptance test #}
{{ App.Session.get('csrf')|csrf }}

{{ 'Login to your account'|trans }}

{# Remember me checkbox #} {% if App.Config.configArr.remember_me_allowed %}
{% endif %} {% if showLocal %} {% endif %}
{% if App.Config.configArr.ldap_toggle %} {# Select login type (local or ldap) #}
{% if showLocal %} {% endif %}
{% else %} {% endif %} {# Login button #}
{% if App.Config.configArr.local_register %}

{{ "Don't have an account? %sRegister%s now!"|trans|format("", "")|raw }}

{% endif %} {% endif %} {% if App.Config.configArr.saml_toggle and idpsArr|length %}

{{ 'Login through your institution'|trans }}


{{ App.Session.get('csrf')|csrf }}
{% if App.Config.configArr.debug -%} {%- endif %} {# No remember me checkbox for SAML because it's toggled by remember_me_allowed at the instance level #}
{% endif %} {% if App.Config.configArr.anon_users %}

{{ 'Login as anonymous visitor'|trans }}


{{ App.Session.get('csrf')|csrf }}
{{ 'Select a team'|trans }}
{% endif %} {% endif %}
{% endblock body %}