Refactor authentication system (#2602)
Make auth configuration available via UI, remove FOSUserBundle and SAML-Bundle dependency
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
{% extends 'security/self-registration/layout.html.twig' %}
|
||||
|
||||
{% block login_form %}
|
||||
|
||||
<p>
|
||||
{{ 'registration.check_email'|trans({'%email%': user.email}) }}
|
||||
</p>
|
||||
|
||||
{% endblock %}
|
||||
16
templates/security/self-registration/confirmed.html.twig
Normal file
16
templates/security/self-registration/confirmed.html.twig
Normal file
@@ -0,0 +1,16 @@
|
||||
{% extends 'security/self-registration/layout.html.twig' %}
|
||||
|
||||
{% block login_form %}
|
||||
|
||||
<p>
|
||||
{{ 'registration.confirmed'|trans({'%username%': user.username}, 'AdminLTEBundle') }}
|
||||
</p>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block login_actions %}
|
||||
<br>
|
||||
<a href="{{ path('homepage') }}">
|
||||
{{ 'Show homepage'|trans({}, 'AdminLTEBundle') }}
|
||||
</a>
|
||||
{% endblock %}
|
||||
23
templates/security/self-registration/layout.html.twig
Normal file
23
templates/security/self-registration/layout.html.twig
Normal file
@@ -0,0 +1,23 @@
|
||||
{% extends '@AdminLTE/FOSUserBundle/Registration/register.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 %}
|
||||
1
templates/security/self-registration/register.html.twig
Normal file
1
templates/security/self-registration/register.html.twig
Normal file
@@ -0,0 +1 @@
|
||||
{% extends 'security/self-registration/layout.html.twig' %}
|
||||
Reference in New Issue
Block a user