fix account deletion

This commit is contained in:
osaajani 2020-02-19 02:37:37 +01:00
parent fca212a542
commit 4548c360f0
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ namespace controllers\publics;
return $this->redirect(\descartes\Router::url('Account', 'show'));
}
$delete_account_result = $this->internal_user->delete_for_user($_SESSION['user']['id'], $_SESSION['user']['id']);
$delete_account_result = $this->internal_user->delete($_SESSION['user']['id']);
if (!$delete_account_result)
{
\FlashMessage\FlashMessage::push('danger', 'Impossible de supprimer le compte.');