Deleting acount

pull/22/head
Aurian JAULT 12 months ago
parent 031def0724
commit 35ad046fe1

@ -146,10 +146,10 @@ class ProfilController extends AbstractController
if ($this->getUser()->getId() === $profil->getId()) if ($this->getUser()->getId() === $profil->getId())
{ {
$this->container->get('security.token_storage')->setToken(null);
$this->getUser()->eraseCredentials(); //$this->getUser()->eraseCredentials();
//$this->mgr->remove($profil); $this->mgr->remove($profil);
//$this->mgr->flush(); $this->mgr->flush();
return $this->redirectToRoute('app_logout'); return $this->redirectToRoute('app_logout');
} }

Loading…
Cancel
Save