From 7cfe645ab73adfbb72c8dd9c6b5977f5025dda9b Mon Sep 17 00:00:00 2001 From: j Date: Sat, 9 Nov 2024 16:48:46 +0000 Subject: [PATCH] oidc logout is same as our logout, no need for special case --- static/js/account.js | 6 +----- static/js/utils.js | 9 --------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/static/js/account.js b/static/js/account.js index 05b05321..e213330f 100644 --- a/static/js/account.js +++ b/static/js/account.js @@ -337,11 +337,7 @@ pandora.ui.accountSignoutDialog = function() { that.close(); pandora.UI.set({page: ''}); pandora.api.signout({}, function(result) { - if (pandora.site.site.oidc) { - pandora.oidcLogout(); - } else { - pandora.signout(result.data); - } + pandora.signout(result.data); }); } }) diff --git a/static/js/utils.js b/static/js/utils.js index 874e5d35..6c0bb43b 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -2655,15 +2655,6 @@ pandora.oidcLogin = function() { document.location.href = '/oidc/authenticate/'; }; -pandora.oidcLogout = function() { - Ox.LoadingScreen().css({zIndex: 100}).addClass('OxScreen').appendTo(document.body).show().start() - const form = document.createElement("form"); - form.setAttribute("method", "post"); - form.setAttribute("action", "/oidc/logout/"); - document.body.appendChild(form); - form.submit(); -}; - pandora.openLicenseDialog = function() { if (!Ox.Focus.focusedElementIsInput() && !pandora.hasDialogOrScreen()) { pandora.ui.licenseDialog().open().bindEvent({