oidc logout is same as our logout, no need for special case
This commit is contained in:
parent
ff236e8828
commit
7cfe645ab7
2 changed files with 1 additions and 14 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
})
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue