oidc logout is same as our logout, no need for special case

This commit is contained in:
j 2024-11-09 16:48:46 +00:00
parent ff236e8828
commit 7cfe645ab7
2 changed files with 1 additions and 14 deletions

View file

@ -337,11 +337,7 @@ pandora.ui.accountSignoutDialog = function() {
that.close(); that.close();
pandora.UI.set({page: ''}); pandora.UI.set({page: ''});
pandora.api.signout({}, function(result) { pandora.api.signout({}, function(result) {
if (pandora.site.site.oidc) { pandora.signout(result.data);
pandora.oidcLogout();
} else {
pandora.signout(result.data);
}
}); });
} }
}) })

View file

@ -2655,15 +2655,6 @@ pandora.oidcLogin = function() {
document.location.href = '/oidc/authenticate/'; 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() { pandora.openLicenseDialog = function() {
if (!Ox.Focus.focusedElementIsInput() && !pandora.hasDialogOrScreen()) { if (!Ox.Focus.focusedElementIsInput() && !pandora.hasDialogOrScreen()) {
pandora.ui.licenseDialog().open().bindEvent({ pandora.ui.licenseDialog().open().bindEvent({