mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-28 10:32:27 +08:00
Merge remote-tracking branch 'origin/develop' into feature/client_server_separation
This commit is contained in:
commit
25160a23a6
@ -15,7 +15,7 @@ const noAuthentication = config.General && config.General.noAuthentication === t
|
|||||||
|
|
||||||
function checkAuth(req: Request, res: Response, next: NextFunction) {
|
function checkAuth(req: Request, res: Response, next: NextFunction) {
|
||||||
if (!sqlInit.isDbInitialized()) {
|
if (!sqlInit.isDbInitialized()) {
|
||||||
res.redirect('setup');
|
return res.redirect('setup');
|
||||||
}
|
}
|
||||||
|
|
||||||
const currentTotpStatus = totp.isTotpEnabled();
|
const currentTotpStatus = totp.isTotpEnabled();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user