mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-10-31 01:09:41 +00:00 
			
		
		
		
	Optimized login procedure
This commit is contained in:
		| @@ -1,6 +1,7 @@ | ||||
| {% extends "base.html.twig" %} | ||||
| {% block body %} | ||||
| {% include 'frames/structure/navbar.html.twig'%} | ||||
| {% include 'frames/structure/message/flash_messages.html.twig'%} | ||||
| <br /> | ||||
| <div class="container"> | ||||
| 	{% block content %} | ||||
|   | ||||
| @@ -0,0 +1,5 @@ | ||||
| {% for message in app.flashes('notice') %} | ||||
|     <div class="flash-notice"> | ||||
|         {{ message }} | ||||
|     </div> | ||||
| {% endfor %} | ||||
| @@ -6,16 +6,16 @@ | ||||
| <h1> | ||||
| 	{% trans %}login{% endtrans %} | ||||
| </h1> | ||||
| <form method={{ path('login') }}> | ||||
| <form action={{ path('login') }} method="post"> | ||||
| 	<div class="form-group"> | ||||
| 		<label for="username">{% trans %}Username{% endtrans %}</label> <input | ||||
| 			type="username" name="username" class="form-control" id="username" | ||||
| 			type="username" name="_username" class="form-control" id="username" | ||||
| 			aria-describedby="usernameHelp" | ||||
| 			placeholder="{% trans %}Enter username{% endtrans %}'"> | ||||
| 	</div> | ||||
| 	<div class="form-group"> | ||||
| 		<label for="password">{% trans %}Password{% endtrans %}</label> <input | ||||
| 			type="password" name="password" class="form-control" id="password" | ||||
| 			type="password" name="_password" class="form-control" id="password" | ||||
| 			placeholder="{% trans %}Password{% endtrans %}"> | ||||
| 	</div> | ||||
| 	<button type="submit" class="btn btn-primary"> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user