{% extends "widget_base.html" %} {% import "authopenid/authopenid_macros.html" as login_macros %} {% from "macros.html" import timeago %} {% block title %}{% spaceless %}{% trans %}User login{% endtrans %}{% endspaceless %}{% endblock %} {% block forestyle %} {% endblock %} {% block forejs %} {% include "meta/bottom_scripts.html" %} {% include "meta/html_head_javascript.html" %} {% endblock %} {% block content %} {% if have_buttons or view_subtype == 'email_sent' %}

{{page_title}}

{% endif %}

{% if view_subtype == 'default' and have_buttons %} {% trans %}Choose your favorite service below to sign in using secure OpenID or similar technology. Your external service password always stays confidential and you don't have to rememeber or create another one.{% endtrans %} {% elif view_subtype == 'add_openid' and have_buttons %} {% if existing_login_methods %} {% trans %}It's a good idea to make sure that your existing login methods still work, or add a new one. Please click any of the icons below to check/change or add new login methods.{% endtrans %} {% else %} {% trans %}Please add a more permanent login method by clicking one of the icons below, to avoid logging in via email each time.{% endtrans %} {% endif %} {% elif view_subtype == 'change_openid' and have_buttons %} {% if existing_login_methods %} {% trans %}Click on one of the icons below to add a new login method or re-validate an existing one.{% endtrans %} {% else %} {% trans %}You don't have a method to log in right now, please add one or more by clicking any of the icons below.{% endtrans %} {% endif %} {% elif view_subtype == 'email_sent' %} {% trans %}Please check your email and visit the enclosed link to re-connect to your account{% endtrans %} {% endif %}

{% if openid_error_message %}

{{ openid_error_message }}

{% endif %} {% if view_subtype != 'email_sent' %}
{% csrf_token %} {# in this branch - the real signin view we display the login icons here we hide the local login button only if admin wants to always show the password login form - then the button is useless. #} {{ login_form.login_provider_name }} {{ login_form.next }} {{ login_macros.provider_buttons( login_form = login_form, major_login_providers = major_login_providers, minor_login_providers = minor_login_providers, settings = settings, logged_in = user.is_authenticated(), show_buttons = have_buttons ) }} {% if use_password_login == True %}
{{login_form.password_action}} {% if user.is_anonymous() %} {% if have_buttons %}

{% trans %}or enter your user name and password, then sign in{% endtrans %}

{% else %}

{% trans %}Please, sign in{% endtrans %}

{% endif %} {% if have_buttons %}

{% trans %}(or select another login method above){% endtrans %}

{% endif %} {% if login_form.password_login_failed %}

{% trans %}Login failed, please try again{% endtrans %}

{% endif %}

{% if settings.USE_LDAP_FOR_PASSWORD_LOGIN == False %} {% endif %}

{% elif settings.USE_LDAP_FOR_PASSWORD_LOGIN == False %}

{% trans %}To change your password - please enter the new one twice, then submit{% endtrans %}

{% endif %}
{% endif %}
{% if user.is_authenticated() and existing_login_methods and settings.ALLOW_ADD_REMOVE_LOGIN_METHODS %} {% endif %} {% endif %} {% if view_subtype != 'email_sent' %} {% if user.is_anonymous() and settings.ALLOW_ACCOUNT_RECOVERY_BY_EMAIL %}
{% csrf_token %}

{% trans %}Having trouble signing in?{% endtrans %}

{% if account_recovery_form.email.errors %}

{{ account_recovery_form.email.errors[0] }}

{% endif %}
{% endif %} {% endif %} {% endblock %} {% block endjs %} {% include "authopenid/providers_javascript.html" %} {% endblock %}