This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Logged in but not authenticated?!?!?!

Discuss installing Symfony 2 here

Logged in but not authenticated?!?!?!

by hardcoremore » Fri May 24, 2013 3:12 am

Hi,

I am at the same time logged in but not authenticated. How is that possible?

Look at the photo:

http://i2.minus.com/iKW7ZkF6tfJAi.png
hardcoremore
Junior Member
 
Posts: 10
Joined: Wed May 22, 2013 2:44 pm

Re: Logged in but not authenticated?!?!?!

by hardcoremore » Fri May 24, 2013 3:40 am

I found the solution.

Your user entity class needs to implement use Symfony\Component\Security\Core\User\EquatableInterface

and function

public function isEqualTo(UserInterface $user)
{
return $this->id === $user->getId();
}


and then it works normally.
hardcoremore
Junior Member
 
Posts: 10
Joined: Wed May 22, 2013 2:44 pm