Hello,

I'm currently working on extending FOSUserBundle and I've run into a few 
issues. My first issue is that I need to override the default encoder with 
my own. My site needs to integrate with phpBB3. Therefore I need to use 
their methods for encoding passwords.

Unfortunately, this bundle seems to be hard coded to use the MessageDigest 
encoder. Defining any other encoder just causes the bundle to override my 
encoder with its default one. Aside from modifying the bundle itself, which 
I really don't want to do since I only need to change a few features, is 
there a way I can override this particular service? Conceptually this seems 
like it shouldn't be too difficult to do but I've been having trouble 
figuring out the best way to approach this.

UserBundle also has a listener that updates a user's last login time 
whenever the user logs in (listens for onSecurityInteractiveLogin). Like 
with the above, I need to override this service with my own (I need to have 
it update additional fields in the database) but haven't had much luck doing 
this.

So in general, what would be the best approach for accomplishing these 
goals? Can I just override these services by redefining new versions with 
the same name? Or is there another approach that would be better (e.g., 
extend the FOSUserExtension class and override config options there)? Or 
have I already answered my own questions?

Thanks in advance!

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to