mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-04-28 05:49:53 +00:00
fix #6311: ui: prevent consent text from showing twice for oidc
Signed-off-by: Thomas Skinner <thomas@atskinner.net> Tested-by: Gabriel Goller <g.goller@proxmox.com> Link: https://lore.proxmox.com/20250414021836.1469242-2-thomas@atskinner.net
This commit is contained in:
parent
2a5fa54a85
commit
1d3ff80fe5
@ -22,12 +22,15 @@ Ext.define('PVE.window.LoginWindow', {
|
||||
|
||||
init: async function() {
|
||||
if (Proxmox.ConsentText) {
|
||||
Ext.create("Proxmox.window.ConsentModal", {
|
||||
autoShow: true,
|
||||
consent: Proxmox.Markdown.parse(
|
||||
Proxmox.Utils.base64ToUtf8(Proxmox.ConsentText),
|
||||
),
|
||||
});
|
||||
let oidc_auth_redirect = Proxmox.Utils.getOpenIDRedirectionAuthorization();
|
||||
if (oidc_auth_redirect === undefined) {
|
||||
Ext.create("Proxmox.window.ConsentModal", {
|
||||
autoShow: true,
|
||||
consent: Proxmox.Markdown.parse(
|
||||
Proxmox.Utils.base64ToUtf8(Proxmox.ConsentText),
|
||||
),
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user