express-architecture
express-architecture copied to clipboard
Login form doesn't handle wrong username
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
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.