rez_core 4.0.57 → 4.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -328,7 +328,11 @@ export class UserService extends EntityServiceImpl implements Action {
|
|
|
328
328
|
);
|
|
329
329
|
|
|
330
330
|
if (!organization) {
|
|
331
|
-
throw new BadRequestException('Organization not found.');
|
|
331
|
+
// throw new BadRequestException('Organization not found.');
|
|
332
|
+
return {
|
|
333
|
+
success: false,
|
|
334
|
+
message: 'Organization not found.',
|
|
335
|
+
};
|
|
332
336
|
}
|
|
333
337
|
}
|
|
334
338
|
|
|
@@ -336,7 +340,11 @@ export class UserService extends EntityServiceImpl implements Action {
|
|
|
336
340
|
const user = await this.userRepository.findByEmailId(email_id);
|
|
337
341
|
|
|
338
342
|
if (!user || (organization && user.organization_id !== organization.id)) {
|
|
339
|
-
throw new BadRequestException('User not found in organization.');
|
|
343
|
+
// throw new BadRequestException('User not found in organization.');
|
|
344
|
+
return {
|
|
345
|
+
success: false,
|
|
346
|
+
message: 'User not found in organization.',
|
|
347
|
+
};
|
|
340
348
|
}
|
|
341
349
|
|
|
342
350
|
if (user) {
|
|
@@ -347,7 +355,11 @@ export class UserService extends EntityServiceImpl implements Action {
|
|
|
347
355
|
userId: user.id,
|
|
348
356
|
};
|
|
349
357
|
} else {
|
|
350
|
-
throw new ForbiddenException('No account found with this email address.');
|
|
358
|
+
// throw new ForbiddenException('No account found with this email address.');
|
|
359
|
+
return {
|
|
360
|
+
success: false,
|
|
361
|
+
message: 'No account found with this email address.',
|
|
362
|
+
};
|
|
351
363
|
}
|
|
352
364
|
}
|
|
353
365
|
}
|