Skip to content

Commit

Permalink
fix: Enable login-link feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Aug 2, 2024
1 parent ef21eb3 commit 45b947a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/packages/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,16 @@ security:
secret: '%kernel.secret%'
lifetime: 604800 # 1 week in seconds
path: /
# Enable login-link feature
# https://symfony.com/doc/current/security/login_link.html
login_link:
check_route: login_link_check
signature_properties: [ 'id', 'email' ]
# lifetime in seconds
lifetime: 300
# only allow the link to be used 3 times
max_uses: 3
success_handler: RZ\Roadiz\CoreBundle\Security\Authentication\BackofficeAuthenticationSuccessHandler
login_throttling:
max_attempts: 3
logout:
Expand Down

0 comments on commit 45b947a

Please sign in to comment.