update flash message

This commit is contained in:
Quincy Larson
2015-10-23 14:12:09 -07:00
parent 1db84d1455
commit 4910118366

View File

@ -117,7 +117,8 @@ module.exports = function(app) {
function submitNew(req, res) {
if (!req.user.isGithubCool) {
req.flash('errors', {
msg: 'You must authenticate with Github to post to Camper News'
msg: 'You must link GitHub with your account before you can post' +
' on Camper News.'
});
return res.redirect('/news');
}