mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-13 19:48:45 +00:00
add updateLoginData to PMG.Utils
we need this multiple times Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
88613598ed
commit
f1ab2a1476
@ -227,6 +227,12 @@ Ext.define('PMG.Utils', {
|
||||
nw.focus();
|
||||
},
|
||||
|
||||
updateLoginData: function(data) {
|
||||
Proxmox.CSRFPreventionToken = data.CSRFPreventionToken;
|
||||
Proxmox.UserName = data.username;
|
||||
Ext.util.Cookies.set('PMGAuthCookie', data.ticket, null, '/', null, true );
|
||||
},
|
||||
|
||||
constructor: function() {
|
||||
var me = this;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user