Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Redirect from /register route if konga runs with NO_AUTH
Browse files Browse the repository at this point in the history
  • Loading branch information
pantsel committed Mar 21, 2019
1 parent 8018eb6 commit 039be5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports.routes = {

const usersCount = await sails.models.user.count();

if(usersCount > 0) {
if(usersCount > 0 || process.env.NO_AUTH === 'true') {
return res.redirect('')
}

Expand Down

0 comments on commit 039be5d

Please sign in to comment.