mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
login form
This commit is contained in:
@@ -26,3 +26,9 @@ chill_main_admin_central:
|
||||
login:
|
||||
path: /login
|
||||
defaults: { _controller: ChillMainBundle:Login:login }
|
||||
|
||||
login_check:
|
||||
path: /login_check
|
||||
|
||||
logout:
|
||||
path: /logout
|
||||
|
19
Resources/views/Login/login.html.twig
Normal file
19
Resources/views/Login/login.html.twig
Normal file
@@ -0,0 +1,19 @@
|
||||
{% extends "::base.html.twig" %}
|
||||
|
||||
{% block title %}ChillMainBundle:Login:login{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Welcome to the Login:login page</h1>
|
||||
|
||||
<p>{{ error }}</p>
|
||||
|
||||
<form method="POST" action="{{ path('login_check') }}">
|
||||
<input type="text" name="_username" value="{{ last_username }}" />
|
||||
<input type="password" name="_password" />
|
||||
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}" />
|
||||
|
||||
<button type="submit">{{ 'Login'|trans }}</button>
|
||||
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
Reference in New Issue
Block a user