Change logout to a GET request

pull/235/head
Flashfyre 2024-04-26 13:19:43 -04:00
parent 252e20650d
commit 733eedd12f
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ export default class MenuUiHandler extends MessageUiHandler {
case MenuOptions.LOG_OUT:
success = true;
const doLogout = () => {
Utils.apiPost('account/logout', undefined, undefined, true).then(res => {
Utils.apiFetch('account/logout', true).then(res => {
if (!res.ok)
console.error(`Log out failed (${res.status}: ${res.statusText})`);
Utils.setCookie(Utils.sessionIdKey, '');