Refactor authentication system (#2602)
Make auth configuration available via UI, remove FOSUserBundle and SAML-Bundle dependency
This commit is contained in:
57
templates/security/login.html.twig
Normal file
57
templates/security/login.html.twig
Normal file
@@ -0,0 +1,57 @@
|
||||
{% extends '@AdminLTE/FOSUserBundle/Security/login.html.twig' %}
|
||||
|
||||
{% block logo_login %}{% include 'partials/logo_login.html.twig' %}{% endblock %}
|
||||
{% block title %}{{- get_title() -}}{% endblock %}
|
||||
|
||||
{% block head %}
|
||||
{{ parent() }}
|
||||
{% include 'partials/head.html.twig' %}
|
||||
{% set event = trigger(constant('App\\Event\\ThemeEvent::HTML_HEAD')) %}
|
||||
{{ event.content|raw }}
|
||||
{% endblock %}
|
||||
|
||||
{% block stylesheets %}
|
||||
{{ encore_entry_link_tags('app') }}
|
||||
{% set event = trigger(constant('App\\Event\\ThemeEvent::STYLESHEET')) %}
|
||||
{{ event.content|raw }}
|
||||
{% endblock %}
|
||||
|
||||
{% block javascripts %}
|
||||
{{ encore_entry_script_tags('app') }}
|
||||
{% set event = trigger(constant('App\\Event\\ThemeEvent::JAVASCRIPT')) %}
|
||||
{{ event.content|raw }}
|
||||
{% endblock %}
|
||||
|
||||
{% block login_social_auth %}
|
||||
{% if kimai_config.samlActive %}
|
||||
{% set class = 'btn-primary' %}
|
||||
{% if kimai_config.loginFormActive %}
|
||||
{% set class = 'btn-google' %}
|
||||
<hr>
|
||||
{% endif %}
|
||||
<a href="{{ path('saml_login') }}" class="btn btn-block {{ class }}">
|
||||
{{ kimai_config.samlTitle|trans }}
|
||||
</a>
|
||||
<br>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block login_form %}
|
||||
{% if kimai_config.loginFormActive %}
|
||||
{{ parent() }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block login_actions %}
|
||||
{% if kimai_config.passwordResetActive %}
|
||||
<a href="{{ path('fos_user_resetting_request') }}">
|
||||
{{ 'I forgot my password'|trans({}, 'AdminLTEBundle') }}
|
||||
</a>
|
||||
<br>
|
||||
{% endif %}
|
||||
{% if kimai_config.selfRegistrationActive %}
|
||||
<a href="{{ path('fos_user_registration_register') }}">
|
||||
{{ 'Register a new account'|trans({}, 'AdminLTEBundle') }}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user