brought over changes from 879035d

The last known good state before I got sidetracked into docker changes
This commit is contained in:
matt wilkie
2025-02-16 21:29:38 -07:00
parent 152f3193d1
commit 7af4e52766
5 changed files with 17 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ function checkAuth(req: Request, res: Response, next: NextFunction) {
if (!sqlInit.isDbInitialized()) {
res.redirect("setup");
} else if (!req.session.loggedIn && !isElectron && !noAuthentication) {
res.redirect("login");
res.redirect("share");
} else {
next();
}