Fix jwt-token

This commit is contained in:
2025-09-16 21:21:16 +02:00
parent 69cd3e1005
commit 216dd754a9
2 changed files with 47 additions and 3 deletions

View File

@@ -140,7 +140,7 @@ async function registerLocal(req, res) {
console.log('❌ Registration BLOCKED - Registration disabled for tenant:', tenantId);
return res.status(403).json({
success: false,
message: 'Registration is not enabled for this tenant. Please contact your administrator.'
message: 'Registration not allowed for this tenant'
});
}
@@ -172,7 +172,7 @@ async function registerLocal(req, res) {
if (existingUser) {
console.log('❌ Registration BLOCKED - User already exists in tenant');
return res.status(409).json({
return res.status(400).json({
success: false,
message: 'Username or email already exists'
});