mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added errormessage on faulty admin-login
This commit is contained in:
@@ -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
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user