mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-09 06:01:35 +01:00
Optimized login procedure
This commit is contained in:
parent
0c689194a2
commit
ecd6bfaac1
@ -8,7 +8,6 @@ security:
|
||||
entity:
|
||||
class: App\Entity\User
|
||||
property: username
|
||||
#in_memory: { memory: ~ }
|
||||
firewalls:
|
||||
dev:
|
||||
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user