Fix #953 Close session properly

Fix tests
This commit is contained in:
Nicolas Le Goff
2013-05-29 20:43:56 +02:00
parent e68900b56c
commit a15ee1d729
3 changed files with 4 additions and 4 deletions

View File

@@ -117,7 +117,7 @@ class Authenticator
*/
public function closeAccount()
{
$this->session->clear();
$this->session->invalidate();
$this->reinitUser();
return $this;

View File

@@ -631,7 +631,7 @@ class Login implements ControllerProviderInterface
$app['dispatcher']->dispatch(PhraseaEvents::LOGOUT, new LogoutEvent($app));
$app['authentication']->closeAccount();
$app->addFlash('info', 'Vous etes maintenant deconnecte. A bientot.');
$app->addFlash('info', _('Vous etes maintenant deconnecte. A bientot.'));
$response = new RedirectResponse($app->path('root', array(
'redirect' => $request->query->get("redirect")