Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
login.twig 910 B
{% set pagetitle = 'Authenticate'|trans %}
{% extends "@core/base.twig" %}

{% block content %}
    <h1>{{ pagetitle|trans }}</h1>
    <p>Please choose one of the following authentication methods: </p>

{% if sources is empty -%}
    <p>Please check your SimpleSAML configuration.<br>
        Follow the link and log in with administrator credentials. <a href="{{ loginurl }}">Admin login.</a></p>
{% else %}
    <div class="pure-menu custom-restricted-width">
        <ul class="pure-menu-list auth_methods">
            {% for id, config in sources -%}
                <li class="pure-menu-item">
                    <a href="/{{ baseurlpath }}/module.php/core/login/{{ id|url_encode }}" class="pure-menu-link">
                      {{ config.name|translateFromArray|default(id) }}
                    </a>
                </li>
            {% endfor -%}
        </ul>
    </div>
{% endif %}
{% endblock %}