Print username/password
This commit is contained in:
parent
380c32eb78
commit
3c73d17264
@ -35,7 +35,7 @@ function verifyResponse(res, errorMessage) {
|
||||
|
||||
AppStore.prototype.getAccessToken = function (user) {
|
||||
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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user