Skip to content

Commit

Permalink
Fixed Error
Browse files Browse the repository at this point in the history
AbstractToken set to a $authenticated flag is false. It must be set true after authentication for successful authorization.
This is done for all other symfony tokens.
  • Loading branch information
fightmaster committed Dec 27, 2011
1 parent 73df734 commit c18c6f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Security/Authentication/Provider/Provider.php
Expand Up @@ -31,6 +31,7 @@ public function authenticate(TokenInterface $token)
{
$authenticatedToken = new Token($user->getRoles());
$authenticatedToken->setUser($user);
$authenticatedToken->setAuthenticated(true);

return $authenticatedToken;
}
Expand Down Expand Up @@ -63,4 +64,4 @@ public function supports(TokenInterface $token)
{
return $token instanceof Token;
}
}
}

0 comments on commit c18c6f1

Please sign in to comment.