{% extends "base.html" %} {% load i18n %} {% load crispy_forms_tags %} {% load account socialaccount %} {% block title %}{% trans "Sign In" %}{% endblock %} {% block content %}

{% trans "Sign In" %}

{% comment %} The native app has its own sign-in path for all three providers (MobileSocialAuthView); the web OAuth redirect is blocked inside embedded WebViews ("disallowed_useragent"), so hide these in the app. Each provider appears only when this deployment has configured it — a site with none of them just shows the password form below. {% endcomment %} {% if not request.is_mobile_app %} {% if GOOGLE_LOGIN_ENABLED %} Sign in with your Google account {% endif %} {% if APPLE_LOGIN_ENABLED %} Sign in with Apple {% endif %} {% if FACEBOOK_LOGIN_ENABLED %} Sign in with Facebook {% endif %} {% endif %} {% with social_shown=GOOGLE_LOGIN_ENABLED|default:APPLE_LOGIN_ENABLED|default:FACEBOOK_LOGIN_ENABLED %}

{% if social_shown and not request.is_mobile_app %}Rather not use those? {% endif %}Sign in with your account on this site:
{% endwith %}
{% csrf_token %} {{ form | crispy }} {% if redirect_field_value %} {% endif %} Create a new account {% trans "Forgot Password" %}
{% endblock %}