From d6e1162631a371723655a40304ef2e1fcaf47270 Mon Sep 17 00:00:00 2001 From: Tobias Hopp Date: Tue, 15 Apr 2025 15:43:33 +0200 Subject: [PATCH] Fix message registration disabled for frontend --- src/controllers/auth.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/auth.controller.ts b/src/controllers/auth.controller.ts index 503c38f..0ecc897 100644 --- a/src/controllers/auth.controller.ts +++ b/src/controllers/auth.controller.ts @@ -39,7 +39,7 @@ export const register = async (req: Request, res: Response): Promise => { } if (!process.env.ENABLE_REGISTRATION) { - res.status(403).json({ errors: ['Registration is disabled'] }); + res.status(400).json({ message: 'Registration is disabled' }); return; }