mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-22 17:18:37 +00:00
work
This commit is contained in:
parent
d9b0673dbb
commit
e4b46f77ef
14 changed files with 65 additions and 1 deletions
|
@ -251,4 +251,24 @@ class ConfigController extends Controller
|
|||
|
||||
return $config;
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete account for current user.
|
||||
*
|
||||
* @Route("/account/delete", name="delete_account")
|
||||
*
|
||||
* @return \Symfony\Component\HttpFoundation\RedirectResponse
|
||||
*/
|
||||
public function deleteAccountAction()
|
||||
{
|
||||
$em = $this->get('fos_user.user_manager');
|
||||
$em->deleteUser($this->getUser());
|
||||
|
||||
$this->get('session')->getFlashBag()->add(
|
||||
'notice',
|
||||
'flashes.account.notice.account_deleted'
|
||||
);
|
||||
|
||||
return $this->redirect($this->generateUrl('fos_user_security_logout'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue