login form

This commit is contained in:
2014-11-06 16:37:30 +01:00
parent 0de9cb3a69
commit 3ab38b2602
4 changed files with 91 additions and 0 deletions

View File

@@ -26,3 +26,9 @@ chill_main_admin_central:
login:
path: /login
defaults: { _controller: ChillMainBundle:Login:login }
login_check:
path: /login_check
logout:
path: /logout

View 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 %}