fix account deletion
This commit is contained in:
parent
fca212a542
commit
4548c360f0
|
@ -172,7 +172,7 @@ namespace controllers\publics;
|
||||||
return $this->redirect(\descartes\Router::url('Account', 'show'));
|
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)
|
if (!$delete_account_result)
|
||||||
{
|
{
|
||||||
\FlashMessage\FlashMessage::push('danger', 'Impossible de supprimer le compte.');
|
\FlashMessage\FlashMessage::push('danger', 'Impossible de supprimer le compte.');
|
||||||
|
|
Loading…
Reference in New Issue