fix: client login

This commit is contained in:
NGPixel
2018-06-17 11:12:11 -04:00
parent 197b6b4160
commit 4b0428212d
9 changed files with 91 additions and 129 deletions

View File

@@ -7,7 +7,7 @@ module.exports = (req, res, next) => {
// Is user authenticated ?
if (!req.isAuthenticated()) {
if (WIKI.config.auth.public !== true) {
if (WIKI.config.public !== true) {
return res.redirect('/login')
} else {
// req.user = rights.guest