express-architecture icon indicating copy to clipboard operation
express-architecture copied to clipboard

Login form doesn't handle wrong username

Open L-Slavov opened this issue 8 years ago • 1 comments

Users-controller during authentication doesn't catch if user doesn't exist .
if (!user) { res.render('users/login', { globalError: 'Invalid username or password' }) return }

P.S I tried to branch the project but I'm not good at GIT

L-Slavov avatar Nov 08 '16 12:11 L-Slavov

Fork the project, commit changes and open a pull request to be merged here. It was said in the lecture the project is not full.

ivaylokenov avatar Nov 08 '16 12:11 ivaylokenov