proxmox-backup/www/Utils.js
2019-01-30 15:16:10 +01:00

21 lines
430 B
JavaScript

/*global Proxmox */
Ext.ns('PBS');
console.log("Starting Backup Server GUI");
Ext.define('PBS.Utils', {
singleton: true,
updateLoginData: function(data) {
Proxmox.CSRFPreventionToken = data.CSRFPreventionToken;
Proxmox.UserName = data.username;
Ext.util.Cookies.set('PBSAuthCookie', data.ticket, null, '/', null, true );
},
constructor: function() {
var me = this;
// do whatever you want here
}
});