2018-12-05 11:39:40 +00:00
|
|
|
/*global Proxmox */
|
|
|
|
Ext.ns('PBS');
|
|
|
|
|
|
|
|
console.log("Starting Backup Server GUI");
|
|
|
|
|
|
|
|
Ext.define('PBS.Utils', {
|
|
|
|
singleton: true,
|
|
|
|
|
2019-01-30 14:14:20 +00:00
|
|
|
updateLoginData: function(data) {
|
|
|
|
Proxmox.CSRFPreventionToken = data.CSRFPreventionToken;
|
|
|
|
Proxmox.UserName = data.username;
|
|
|
|
Ext.util.Cookies.set('PBSAuthCookie', data.ticket, null, '/', null, true );
|
|
|
|
},
|
|
|
|
|
2018-12-05 11:39:40 +00:00
|
|
|
constructor: function() {
|
|
|
|
var me = this;
|
|
|
|
|
|
|
|
// do whatever you want here
|
|
|
|
}
|
|
|
|
});
|