Skip to content

Commit

Permalink
Merge 3e0e189 into dbdbeb3
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilome committed Oct 9, 2018
2 parents dbdbeb3 + 3e0e189 commit 0c58f96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/controllers/authController.js
Expand Up @@ -38,7 +38,7 @@ class AuthController {
if (!userExists) {
return res.status(400).json({
status: 'error',
message: 'no user with that email exists',
message: 'invalid email or password provided',
});
}

Expand All @@ -48,7 +48,7 @@ class AuthController {
if (!correctPassword) {
return res.status(400).json({
status: 'error',
message: 'incorrect password',
message: 'invalid email or password provided',
});
}

Expand Down
2 changes: 2 additions & 0 deletions tests/routes/auth.spec.js
Expand Up @@ -149,6 +149,7 @@ describe('POST /auth/login', () => {

res.status.should.eql(400);
res.body.should.not.have.keys(['auth_token']);
res.body.message.should.eql('invalid email or password provided');
done();
});
});
Expand All @@ -162,6 +163,7 @@ describe('POST /auth/login', () => {

res.status.should.eql(400);
res.body.should.not.have.keys(['auth_token']);
res.body.message.should.eql('invalid email or password provided');
done();
});
});
Expand Down

0 comments on commit 0c58f96

Please sign in to comment.