From cfdef77b28c936f34fed84cdc0783fdaac025562 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Sun, 28 Mar 2021 11:59:17 -0400 Subject: [PATCH] fix: use app.logout() to clear session after deleting user I think this was originally changed when we added logging in/out without refreshing, but didn't change this back after reverting that feature --- public/src/client/account/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/client/account/edit.js b/public/src/client/account/edit.js index 91624113a8..5ccccd0730 100644 --- a/public/src/client/account/edit.js +++ b/public/src/client/account/edit.js @@ -88,7 +88,7 @@ define('forum/account/edit', [ } confirmBtn.html(''); - window.location.href = config.relative_path + '/'; + app.logout(); }); return false;