diff --git a/config/packages/security.yaml b/config/packages/security.yaml index 8cb7e4242..5215cc7fe 100644 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -44,6 +44,15 @@ security: # session (for example when the users access directly to the login page). default_target_path: blog_index + # Reference: https://symfony.com/doc/current/security/remember_me.html + remember_me: + secret: '%kernel.secret%' # required + lifetime: 604800 # 1 week in seconds + # by default, the feature is enabled by checking a + # checkbox in the login form (see below), uncomment the + # following line to always enable it. + #always_remember_me: true + logout: # The route name the user can go to in order to logout path: security_logout diff --git a/templates/security/login.html.twig b/templates/security/login.html.twig index 67465b214..8de9c389e 100644 --- a/templates/security/login.html.twig +++ b/templates/security/login.html.twig @@ -28,6 +28,12 @@ +