Print username/password

This commit is contained in:
Girish Ramakrishnan 2015-07-27 11:50:07 -07:00
parent 380c32eb78
commit 3c73d17264

View File

@ -35,7 +35,7 @@ function verifyResponse(res, errorMessage) {
AppStore.prototype.getAccessToken = function (user) { AppStore.prototype.getAccessToken = function (user) {
var res = request.get(this._origin + '/api/v1/login').auth(user.email, user.password).end(); var res = request.get(this._origin + '/api/v1/login').auth(user.email, user.password).end();
verifyResponse(res, 'Could not login'); verifyResponse(res, 'Could not login as user:' + user.email + ' password:' + user.password);
return res.body.accessToken; return res.body.accessToken;
}; };