});
enyo.setCookie('username', '', {"Max-Age": 0});
},
+ changePassword: function(oldpassword, newpassword) {
+ var req = new enyo.Ajax({
+ url: baseURL + '/passwd',
+ method: 'POST'
+ });
+ req.response(function(inSender, inResponse) {
+ if (inResponse.status == 'success') {
+ this.bubble('onPasswordChangeSuccessful');
+ } else {
+ this.bubble('onPasswordChangeFailed');
+ }
+ }.bind(this));
+ req.go({
+ username: blerg.API.username,
+ password: oldpassword,
+ new_password: newpassword
+ });
+ },
loadUserRecords: function(username, from ,to) {
var url;
if (from != undefined && to != undefined) {