1
0
Fork 0
arangodb/html/admin/js/models/arangoSession.js

26 lines
472 B
JavaScript

/*jslint indent: 2, nomen: true, maxlen: 100, sloppy: true, vars: true, white: true, plusplus: true */
/*global Backbone, $, window */
window.Session = Backbone.Model.extend({
defaults: {
sessionId: "",
userName: "",
password: "",
userId: "",
data: {}
},
initialize: function () {
},
isAuthorized: function () {
//return Boolean(this.get("sessionId");
return true;
},
isNotAuthorized: function () {
return false;
}
});