Back to Zulip

{{ _("Log in to Zulip") }}

templates/zerver/login.html

12.02.5 KB
Original Source

{% extends "zerver/portico.html" %} {% set entrypoint = "signup" %} {% block title %}

{{ _("Log in") }} | Zulip{% endblock %} {# Login page. #} {% block portico_content %}

{{ _("Log in to Zulip") }}

{% if realm_name %}

{{ realm_name }}

{{ realm_url }}

{{ realm_description|safe }}

{% endif %} {% if no_auth_enabled %}

No authentication backends are enabled on this server yet, so it is impossible to log in!

See the Zulip authentication documentation to learn how to configure authentication backends.

{% else %} {% if already_registered %} {{ _("You've already registered with this email address. Please log in below.") }} {% endif %} {% if deactivated_account_error %} {{ deactivated_account_error }} {% endif %} {% if password_auth_enabled %} {% if two_factor_authentication_enabled %} {{ wizard.management_form }} {% endif %} {{ csrf_input }} {% if not two_factor_authentication_enabled or wizard.steps.current == 'auth' %} {% if not require_email_format_usernames and email_auth_enabled %} {{ _('Email or username') }} {% elif not require_email_format_usernames %} {{ _('Username') }} {% else %} {{ _('Email') }} {% endif %}

{{ _('Password') }}

{% if email_auth_enabled %} {{ _('Forgot your password?') }} {% endif %} {% else %} {% include "two_factor/_wizard_forms.html" %} {% endif %} {% if form.errors %} {% for error in form.errors.values() %} {{ error | striptags }} {% endfor %} {% endif %} {{ _("Log in") }} {% if external_authentication_methods|length > 0 %} {{ _('OR') }} {% endif %} {% endif %} {% for backend in external_authentication_methods %} {{ _('Log in with %(identity_provider)s', identity_provider=backend.display_name) }} {% endfor %} {% endif %} {% set show_signup_button = not register_link_disabled and not no_auth_enabled %} {% if realm_web_public_access_enabled or show_signup_button %} {% if not no_auth_enabled %} {{ _('OR') }} {% endif %} {% if realm_web_public_access_enabled %} {{ csrf_input }} {{ _('View without an account') }} {% endif %} {% if show_signup_button %} {% if next %}{% endif %} {{ _('Sign up') }} {% endif %} {% endif %}

{% if realm_invite_required %}

{{ _("Don't have an account yet? You need to be invited to join this organization.") }}

{% endif %}

{% endblock %}