mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
brought over changes from 879035d
The last known good state before I got sidetracked into docker changes
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user