jmikola / JmikolaAutoLoginBundle

Authenticate users in your Symfony app via a single query parameter (e.g. email and newsletter links).
MIT License
84 stars 16 forks source link

Register twig global variable and di parameter for "token_param" option. #21

Open Koc opened 8 years ago

Koc commented 8 years ago

For example if I have custom token_param value and have many emails with autologin feature I should everywhere hardcode token_param value. It would be better access to it using global twig variable

{{ url('private_office', {(autologin_token_param): token}) }}