add ocid based login
This commit is contained in:
parent
d83309d4cd
commit
34af2b1fab
12 changed files with 131 additions and 28 deletions
|
|
@ -2650,6 +2650,20 @@ pandora.logEvent = function(data, event, element) {
|
|||
}
|
||||
};
|
||||
|
||||
pandora.oidcLogin = function() {
|
||||
Ox.LoadingScreen().css({zIndex: 100}).addClass('OxScreen').appendTo(document.body).show().start()
|
||||
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…
Add table
Add a link
Reference in a new issue