I want to perform one small PHP action after someone just logged in with the Remember Me feature in Symfony2.
I saw this, but not sure how to extend it: http://api.symfony.com/2.3/Symfony/Component/Security/Http/RememberMe/PersistentTokenBasedRememberMeServices.html
I'm not sure how to do this (without editing the main code, which, of course, will not be good). I added my own code to the AuthenticationSuccess handler when it logs in by submitting the form, but this is just by creating a service and specifying an example as shown below, but I donβt see the options for RememberMe success handler, and I can see the full list of options here: http: //symfony.com/doc/current/reference/configuration/security.html .
security: firewalls: secure_area: form_login: success_handler: some.service.id
How should I do it? Thanks in advance.
Users who authenticate through remember me get the IS_AUTHENTICATED_REMEMBERED role.
IS_AUTHENTICATED_REMEMBERED
Check the user roles for this role in the regular success handler and complete the required actions.
Source: https://habr.com/ru/post/1492695/More articles:Problems with sudo inside expect script - linuxC typedef for an undeclared structure does not throw any compilation error - cHow to access .yml options in services.yml? - parametersCan I send out-of-band data along with commit? - gitNested ranges for loops - c ++URLRequest multiple SWF links not working properly - flexiOS: How to adjust the height of the area covered by the keyboard in iOS - iosAngularJS Page loading in div - angularjsHow to set up custom string foreign key in Rails 4? - ruby ββ| fooobar.comemoticons replace array "<3" - arraysAll Articles