mirror of
https://github.com/philipredstone/relnet.git
synced 2025-06-17 05:01:24 +02:00
Fix message registration disabled for frontend
This commit is contained in:
parent
3ecc650daf
commit
d6e1162631
@ -39,7 +39,7 @@ export const register = async (req: Request, res: Response): Promise<void> => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!process.env.ENABLE_REGISTRATION) {
|
if (!process.env.ENABLE_REGISTRATION) {
|
||||||
res.status(403).json({ errors: ['Registration is disabled'] });
|
res.status(400).json({ message: 'Registration is disabled' });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user