mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-08 01:17:20 +00:00
fix #2758: reject 'tfa' cookies
return false on authOK when the ticket is a tfa ticket (starts with PVE:tfa!) when a user now loads the page with only a tfa ticket, it shows the login window again Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
eaa0fcbd77
commit
ac6184986c
3
Utils.js
3
Utils.js
@ -207,7 +207,8 @@ Ext.define('Proxmox.Utils', { utilities: {
|
||||
if (Proxmox.LoggedOut) {
|
||||
return undefined;
|
||||
}
|
||||
return (Proxmox.UserName !== '') && Ext.util.Cookies.get(Proxmox.Setup.auth_cookie_name);
|
||||
let cookie = Ext.util.Cookies.get(Proxmox.Setup.auth_cookie_name);
|
||||
return (Proxmox.UserName !== '') && (cookie && !cookie.startsWith("PVE:tfa!"));
|
||||
},
|
||||
|
||||
authClear: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user