mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fix(services/auth): fix ERR_HTTP_HEADERS_SENT errors on new unitialized Setups
was previously showing two errors: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
This commit is contained in:
		| @@ -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(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user