Added errormessage on faulty admin-login

This commit is contained in:
Kasper Rynning-Tønnesen
2018-05-12 15:25:49 +02:00
parent d93c4eb2e7
commit c11927de51
2 changed files with 5 additions and 1 deletions

View File

@@ -155,7 +155,7 @@ app.post('/signup', passport.authenticate('local-signup', {
app.post('/login', passport.authenticate('local-login', {
successRedirect : '/', // redirect to the secure profile section
failureRedirect : '/login', // redirect back to the signup page if there is an error
failureRedirect : '/login#failed', // redirect back to the signup page if there is an error
failureFlash : true // allow flash messages
}));