mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-03 19:39:54 -06:00
restore missing new install check
This commit is contained in:
@@ -14,7 +14,10 @@ import optionService from "./options.js";
|
||||
const noAuthentication = config.General && config.General.noAuthentication === true;
|
||||
|
||||
function checkAuth(req: AppRequest, res: Response, next: NextFunction) {
|
||||
if (!req.session.loggedIn && !utils.isElectron() && !noAuthentication) {
|
||||
if (!sqlInit.isDbInitialized()) {
|
||||
res.redirect("setup");
|
||||
}
|
||||
else if (!req.session.loggedIn && !utils.isElectron() && !noAuthentication) {
|
||||
if (optionService.getOption('redirectBareDomain') === 'true') {
|
||||
res.redirect('/share');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user