jeudi 19 juin 2014

FOSUserBundle: Registration redirect if logged in


Vote count:

0




I was wondering what would be the best method to redirect a user who is ALREADY LOGGED IN if they try and access the registration page.


I would prefer a method that does not require me overriding the registration controller simply to implement a login check & redirect.


I looked at the registration initialization event but I don't know how to initiate the redirect since there doesn't seem to be a way to set the event response via the UserEvent class.


Thanks



asked 36 secs ago






Aucun commentaire:

Enregistrer un commentaire