login progress

This commit is contained in:
Edin Dazdarevic
2015-03-02 07:49:36 +01:00
parent 7c28876fed
commit 4befef5bf4
8 changed files with 233 additions and 63 deletions

View File

@@ -0,0 +1,23 @@
var Backbone = require('backbone');
var Globals = require('../globals');
var Login = Backbone.Model.extend({
initialize: function() {
$.ajaxPrefilter(
function(options, originalOptions, jqXHR) {
options.xhrFields = {
withCredentials: true
}
}
);
},
url : Globals.ApiUrl + '/user/login',
defaults : {
email: '',
password: ''
}
});
module.exports = Login;