mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-05 14:32:46 +00:00
mobile: workspace: reuse Proxmox.Utils.setAuthData
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
3986c86786
commit
ab17ebcdc4
@ -107,12 +107,9 @@ Ext.define('PVE.Workspace', { statics: {
|
||||
|
||||
updateLoginData: function(loginData) {
|
||||
PVE.Workspace.loginData = loginData;
|
||||
Proxmox.CSRFPreventionToken = loginData.CSRFPreventionToken;
|
||||
Proxmox.UserName = loginData.username;
|
||||
|
||||
// creates a session cookie (expire = null)
|
||||
// that way the cookie gets deleted after browser window close
|
||||
Ext.util.Cookies.set('PVEAuthCookie', loginData.ticket, null, '/', null, true);
|
||||
// also sets the cookie
|
||||
Proxmox.Utils.setAuthData(loginData);
|
||||
|
||||
PVE.Workspace.gotoPage('');
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user