Log out user after deleting account

This commit is contained in:
Miraty 2022-09-02 18:49:59 +02:00
parent c13ec1829a
commit 1292a22b02

View file

@ -34,7 +34,7 @@ if (processForm()) {
query('delete', 'users', ['username' => $_SESSION['username']]);
redir();
require "logout.php";
success("Compte supprimé.");
}