File: login.twig

package info (click to toggle)
simplesamlphp 1.19.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 42,920 kB
  • sloc: php: 202,044; javascript: 14,867; xml: 2,700; sh: 225; perl: 82; makefile: 70; python: 5
file content (28 lines) | stat: -rw-r--r-- 1,052 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{% 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="{{ moduleURL('core/login/' ~ id|url_encode) }}" class="pure-menu-link">
                      {% if config.name is defined %}
                        {{ config.name|translateFromArray|default(id) }}
                      {% else %}
                        {{ id }}
                      {% endif %}
                    </a>
                </li>
            {% endfor -%}
        </ul>
    </div>
{% endif %}
{% endblock %}