results of npx prettier

This commit is contained in:
Matt Wilkie
2025-02-17 13:19:55 -07:00
parent ed8b8e50a4
commit 2ec2d784ec
5 changed files with 18 additions and 21 deletions

View File

@@ -16,7 +16,7 @@ function checkAuth(req: Request, res: Response, next: NextFunction) {
if (!sqlInit.isDbInitialized()) {
res.redirect("setup");
} else if (!req.session.loggedIn && !isElectron && !noAuthentication) {
const redirectToShare = options.getOption('redirectBareDomain') === 'true';
const redirectToShare = options.getOption("redirectBareDomain") === "true";
res.redirect(redirectToShare ? "share" : "login");
} else {
next();