{%- set footer_content = get_part('login page footer', get_part('global footer')) %} {%- set page_title = get_part('login page title', word('Sign in')) %} {%- set tab_title = get_part('login page tab title', word('Sign in')) %} {%- if extra_css is not defined %} {%- set extra_css = get_part('login page extra css') %} {%- endif %} {%- if extra_js is not defined %} {%- set extra_js = get_part('login page extra javascript') %} {%- endif %} {%- if navigation_bar_html is not defined %} {%- set navigation_bar_html = get_part('login page navigation bar html') %} {%- endif %} {%- extends 'flask_user/public_base.html' %} {%- block content %} {%- from "base_templates/form_macros.html" import render_field, render_checkbox_field, render_submit_field, myrender_hidden_field %}

{{ get_part('login page heading', word('Sign in')) }}

{{ get_part('login page pre') }} {%- if config['USE_PASSWORD_LOGIN'] or ('admin' in request.args and request.args['admin'] == '1') %}
{{ form.hidden_tag() }} {%- set field = form.username if user_manager.enable_username else form.email %}
{%- if user_manager.enable_register and not user_manager.require_invitation %} {%- if 'next' in request.args %} {%- else %} {%- endif %} {{ word("New here? Register.") }} {%- endif %}
{{ field(class_='form-control', type='email') }}
{%- if field.errors %} {%- for e in field.errors %}

{{ e }}

{%- endfor %} {%- endif %}
{%- set field = form.password %}
{%- if user_manager.enable_forgot_password %} {{ word("Forgot your Password?") }} {%- endif %}
{{ field(class_='form-control') }}
{%- if field.errors %} {%- for e in field.errors %}

{{ e }}

{%- endfor %} {%- endif %}
{%- if user_manager.enable_remember_me %} {{ render_checkbox_field(login_form.remember_me) }} {%- endif %} {{ get_part('login page submit') }}
{{ render_submit_field(form.submit) }}
{%- if config['USE_GOOGLE_LOGIN'] or config['USE_FACEBOOK_LOGIN'] or config['USE_TWITTER_LOGIN'] or config['USE_AUTH0_LOGIN'] or config['USE_KEYCLOAK_LOGIN'] or config['USE_AZURE_LOGIN'] or config['USE_PHONE_LOGIN'] %}

{{ word('or') }}

{%- endif %} {%- endif %} {%- if config['USE_PHONE_LOGIN'] %}
{{ word('Sign in with your mobile phone') }}
{%- endif %} {%- if config['USE_GOOGLE_LOGIN'] %}
{{ word('Sign in with Google') }}
{%- endif %} {%- if config['USE_FACEBOOK_LOGIN'] %}
{{ word('Sign in with Facebook') }}
{%- endif %} {%- if config['USE_TWITTER_LOGIN'] %}
{{ word('Sign in with Twitter') }}
{%- endif %} {%- if config['USE_AUTH0_LOGIN'] %}
{{ word('Sign in with Auth0') }}
{%- endif %} {%- if config['USE_KEYCLOAK_LOGIN'] %}
{{ word('Sign in with Keycloak') }}
{%- endif %} {%- if config['USE_AZURE_LOGIN'] %}
{{ word('Sign in with Azure') }}
{%- endif %}{{ get_part('login page post') }} {%- if False and config['USE_GOOGLE_LOGIN'] %} {%- endif %} {%- endblock %}