mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-06-02 08:20:32 +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() {
|
init: async function() {
|
||||||
if (Proxmox.ConsentText) {
|
if (Proxmox.ConsentText) {
|
||||||
Ext.create("Proxmox.window.ConsentModal", {
|
let oidc_auth_redirect = Proxmox.Utils.getOpenIDRedirectionAuthorization();
|
||||||
autoShow: true,
|
if (oidc_auth_redirect === undefined) {
|
||||||
consent: Proxmox.Markdown.parse(
|
Ext.create("Proxmox.window.ConsentModal", {
|
||||||
Proxmox.Utils.base64ToUtf8(Proxmox.ConsentText),
|
autoShow: true,
|
||||||
),
|
consent: Proxmox.Markdown.parse(
|
||||||
});
|
Proxmox.Utils.base64ToUtf8(Proxmox.ConsentText),
|
||||||
|
),
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user