mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-18 06:51:08 +00:00
Change logout to a GET request
This commit is contained in:
parent
252e20650d
commit
733eedd12f
@ -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, '');
|
||||
|
Loading…
x
Reference in New Issue
Block a user