diff --git a/routers/index.js b/routers/index.js index 4111002..64bb743 100644 --- a/routers/index.js +++ b/routers/index.js @@ -91,7 +91,7 @@ router.get('/configure', userRequired, (req, res, next) => { showPasswordWarning = true; } res.locals.message = req.flash('message'); - res.locals.showPasswordWarning = true; + res.locals.showPasswordWarning = showPasswordWarning; res.render('configure', req.session.user); }); diff --git a/views/configure.ejs b/views/configure.ejs index 4ca5202..bb6b87b 100644 --- a/views/configure.ejs +++ b/views/configure.ejs @@ -14,6 +14,18 @@ <% }%> +