Skip to content

Commit eca341d

Browse files
committed
Add small console log for login fail
1 parent dcb0d39 commit eca341d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

webapp/controllers/profile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ authRouter.post('/login', (req, res, next) => {
5252

5353
request.post(host + '/api/user/login',
5454
{ json: { email, password }},
55-
(err, resp) => {
55+
(err, resp, body) => {
5656

5757
if (err) {
5858
console.log(err);
@@ -68,6 +68,7 @@ authRouter.post('/login', (req, res, next) => {
6868

6969
// Bad login
7070
else {
71+
console.log('problem', body);
7172
req.flash('error', 'Incorrect username or password.');
7273
res.redirect('/login');
7374
}

0 commit comments

Comments
 (0)