```
♻️ refactor: Supprime la gestion de la déconnexion et simplifie l'authentification.
```
This commit is contained in:
@@ -100,11 +100,7 @@ L'overflow-y-auto n'est plus nécessaire ici car c'est le <body> qui gère le sc
|
||||
{% endif %}
|
||||
</span>
|
||||
|
||||
<!-- Bouton Déconnexion -->
|
||||
<a href="{{ path('app_logout') }}" class="ml-4 p-2 bg-red-600 text-white rounded-lg hover:bg-red-700 transition duration-150 flex items-center shadow-md">
|
||||
<svg class="w-5 h-5 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"></path></svg>
|
||||
Déconnexion
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
@@ -223,11 +223,7 @@
|
||||
tabindex="-1">
|
||||
{{ 'logged_admin'|trans }}
|
||||
</a>
|
||||
<a href="{{ path('app_logout') }}"
|
||||
class="block px-4 py-2 text-sm text-red-600 hover:bg-gray-100" role="menuitem"
|
||||
tabindex="-1">
|
||||
{{ 'logout_link'|trans }}
|
||||
</a>
|
||||
|
||||
{% else %}
|
||||
{# Afficher la connexion si non connecté #}
|
||||
<a href="{{ path('app_login') }}"
|
||||
@@ -265,11 +261,7 @@
|
||||
class="block px-4 py-2 text-sm text-gray-900 font-semibold border-b border-gray-100">
|
||||
{{ 'logged_in_as'|trans }} {{ app.user.username|default('Compte') }}
|
||||
</div>
|
||||
<a href="{{ path('app_logout') }}"
|
||||
class="block px-4 py-2 text-sm text-red-600 hover:bg-gray-100" role="menuitem"
|
||||
tabindex="-1">
|
||||
{{ 'logout_link'|trans }}
|
||||
</a>
|
||||
|
||||
{% else %}
|
||||
<a href="{{ path('app_login') }}"
|
||||
class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100" role="menuitem"
|
||||
|
||||
@@ -70,14 +70,6 @@
|
||||
|
||||
{# Remember Me & Forgot Password (Optional) #}
|
||||
<div class="flex items-center justify-between">
|
||||
<div class="flex items-center">
|
||||
<input id="remember_me" name="_remember_me" type="checkbox"
|
||||
class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
||||
<label for="remember_me" class="ml-2 block text-sm text-gray-900">
|
||||
{{ 'label.remember_me'|trans }}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="text-sm">
|
||||
<a href="{{ path('app_forgot_password') }}" class="font-medium text-indigo-600 hover:text-indigo-500">
|
||||
{{ 'link.forgot_password'|trans }}
|
||||
|
||||
Reference in New Issue
Block a user