use saml config interface instead of generic system configuration (#3551)

This commit is contained in:
Kevin Papst
2022-09-23 13:29:46 +02:00
committed by GitHub
parent b38fc96623
commit bfab6f42d0
8 changed files with 41 additions and 28 deletions

View File

@@ -23,13 +23,13 @@
{% endblock %}
{% block login_social_auth %}
{% if kimai_config.samlActive %}
{% if saml_config.isActivated() %}
{% set class = 'btn-primary' %}
{% if kimai_config.loginFormActive %}
{% set class = 'btn-google' %}
{% endif %}
<a href="{{ path('saml_login') }}" class="btn btn-block {{ class }}">
<span>{{ kimai_config.samlTitle|trans }}</span>
<span>{{ saml_config.getTitle()|trans }}</span>
</a>
<br>
{% endif %}