Fix jwt-token
This commit is contained in:
@@ -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'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user