Le 11/04/2011 16:01, smontes a écrit :
so , the solution would be :
The simpliest solution would be removing the firewall named "login" and use only the firewall named "main" with "anonymous: true". (I really have the feeling that you did not read my whole message as it was still what I said the first time)
The argument passed as $user is an instance of UserInterface, not always
of your entity. So you need to check for it first or to use only methods
of the interface.
Sorry, but I dont know if I understand you . if my entity implements
UserInterface and it has got its methods (firstname, lastname, alias,
etc) and the interface`s methods as getPassword, getRoles, etc . Is
this correct or not. and if not where or what  should I do?

The argument passed to the equals method is an instance of UserInterface but it may not be an instance of your class (the typehint is not on your class). So you cannot rely on the getFirstname method directly. So either add a first check about the class name (and return false if it is not the good one), either use only the method of the interface for the $user variable as they are the only one that you can rely on.

--
Christophe | Stof

--
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