diff --git a/_regroup/src/services/auth.ts b/_regroup/src/services/auth.ts index d1d951fc0..3c9c9c8e6 100644 --- a/_regroup/src/services/auth.ts +++ b/_regroup/src/services/auth.ts @@ -15,7 +15,7 @@ const noAuthentication = config.General && config.General.noAuthentication === t function checkAuth(req: Request, res: Response, next: NextFunction) { if (!sqlInit.isDbInitialized()) { - res.redirect('setup'); + return res.redirect('setup'); } const currentTotpStatus = totp.isTotpEnabled();