This commit is contained in:
Thomas Citharel 2016-07-01 10:58:15 +02:00 committed by Jeremy Benoist
parent e4b46f77ef
commit abb5291cd5
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
2 changed files with 13 additions and 13 deletions

View file

@ -252,13 +252,13 @@ class ConfigController extends Controller
return $config; return $config;
} }
/** /**
* Delete account for current user. * Delete account for current user.
* *
* @Route("/account/delete", name="delete_account") * @Route("/account/delete", name="delete_account")
* *
* @return \Symfony\Component\HttpFoundation\RedirectResponse * @return \Symfony\Component\HttpFoundation\RedirectResponse
*/ */
public function deleteAccountAction() public function deleteAccountAction()
{ {
$em = $this->get('fos_user.user_manager'); $em = $this->get('fos_user.user_manager');

View file

@ -243,11 +243,11 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf
public function serialize() public function serialize()
{ {
return serialize($this->id); return serialize($this->id);
} }
public function unserialize($serialized) public function unserialize($serialized)
{ {
$this->id = unserialize($serialized); $this->id = unserialize($serialized);
} }
} }