From a0153b02c99eec52a9cf31ff9ce694de82552796 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Fri, 29 May 2020 16:22:14 +0200 Subject: [PATCH] ui: use Proxmox.Utils.setAuthData this uses different parameters which we want to be the same for all products (e.g. secure cookie) leave the PBS.Utils.updateLoginData for the case that we want to do something more here (as in pve for example) Signed-off-by: Dominik Csapak --- www/Utils.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/www/Utils.js b/www/Utils.js index de1b6427..e6c281bd 100644 --- a/www/Utils.js +++ b/www/Utils.js @@ -7,12 +7,8 @@ Ext.define('PBS.Utils', { singleton: true, updateLoginData: function(data) { - Proxmox.CSRFPreventionToken = data.CSRFPreventionToken; - Proxmox.UserName = data.username; - //console.log(data.ticket); - // fixme: use secure flag once we have TLS - //Ext.util.Cookies.set('PBSAuthCookie', data.ticket, null, '/', null, true ); - Ext.util.Cookies.set('PBSAuthCookie', data.ticket, null, '/', null, false); + + Proxmox.Utils.setAuthData(data); }, dataStorePrefix: 'DataStore-',