Private
Public Access
1
0

chg: usr: improve the gfx on homepage - implement login/register and activation for authentication - and add the first version of profile page #4

This commit is contained in:
2026-04-11 20:45:51 +02:00
parent eff849549b
commit 6b3e19b063
43 changed files with 3375 additions and 1806 deletions

View File

@@ -1,27 +1,35 @@
security:
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
password_hashers:
App\Entity\User:
algorithm: auto
providers:
app_user_provider:
entity:
class: App\Entity\User
property: username
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
lazy: true
provider: app_user_provider
user_checker: App\Security\UserChecker
form_login:
login_path: MineSeekerBundle_login
check_path: MineSeekerBundle_login
default_target_path: MineSeekerBundle_homepage
username_parameter: _username
password_parameter: _password
enable_csrf: true
logout:
path: MineSeekerBundle_logout
target: MineSeekerBundle_homepage
remember_me:
secret: '%kernel.secret%'
lifetime: 604800
remember_me_parameter: _remember_me
# activate different ways to authenticate
# http_basic: true
# https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
# form_login: true
# https://symfony.com/doc/current/security/form_login_setup.html
# Easy way to control access for large sections of your site
# Note: Only the *first* access control that matches will be used
access_control:
# - { path: ^/admin, roles: ROLE_ADMIN }
# - { path: ^/profile, roles: ROLE_USER }