#86 Fixed flash on failed logins

master
Keith Irwin 2017-05-07 02:11:35 -04:00
parent 359e7d1b94
commit 29657d95ad
No known key found for this signature in database
GPG Key ID: 378933C743E2BBC0
1 changed files with 2 additions and 4 deletions

View File

@ -111,8 +111,7 @@ module.exports = (passport)=>{
// No such user
else {
req.session.flashType = 'warning';
req.session.flashMessage = `There's no user for that ${service} account. `;
req.flash('warning', `There's no user for that ${service} account. `);
return done();
}
@ -126,8 +125,7 @@ module.exports = (passport)=>{
// No googleId either
else {
winston.debug(`Couldn't find ${service} user.`);
req.session.flashType = 'warning';
req.session.flashMessage = `There's no user for that ${service} account. `;
req.flash('warning', `There's no user for that ${service} account. `);
return done();
}
}