Update deleteAccount-controller.php
This commit is contained in:
@@ -13,6 +13,8 @@ try {
|
||||
|
||||
if (isset($_SESSION["user_email"])) {
|
||||
$dao->deleteUser($_SESSION["user_email"]);
|
||||
} else {
|
||||
throw new NotFoundException("missing_user_email");
|
||||
}
|
||||
|
||||
$_SESSION = [];
|
||||
|
||||
Reference in New Issue
Block a user