Change logout to a GET request
parent
252e20650d
commit
733eedd12f
|
@ -311,7 +311,7 @@ export default class MenuUiHandler extends MessageUiHandler {
|
||||||
case MenuOptions.LOG_OUT:
|
case MenuOptions.LOG_OUT:
|
||||||
success = true;
|
success = true;
|
||||||
const doLogout = () => {
|
const doLogout = () => {
|
||||||
Utils.apiPost('account/logout', undefined, undefined, true).then(res => {
|
Utils.apiFetch('account/logout', true).then(res => {
|
||||||
if (!res.ok)
|
if (!res.ok)
|
||||||
console.error(`Log out failed (${res.status}: ${res.statusText})`);
|
console.error(`Log out failed (${res.status}: ${res.statusText})`);
|
||||||
Utils.setCookie(Utils.sessionIdKey, '');
|
Utils.setCookie(Utils.sessionIdKey, '');
|
||||||
|
|
Loading…
Reference in New Issue