feat: add mode parameter to social auth to distinguish between login and signup flows
This commit is contained in:
@@ -487,15 +487,6 @@ export class UsersService {
|
||||
throw new BadRequestException('Profile is already verified');
|
||||
}
|
||||
|
||||
// Validate required fields are filled
|
||||
const missingFields = await this.getRequiredFieldsMissing(user.agentProfile.id, user.agentProfile.agentTypeId);
|
||||
if (missingFields.length > 0) {
|
||||
throw new BadRequestException({
|
||||
message: 'Please fill in all required fields before submitting',
|
||||
missingFields,
|
||||
});
|
||||
}
|
||||
|
||||
// Capture snapshot of current profile data + documents
|
||||
const profileSnapshot = await this.captureProfileSnapshot(user.agentProfile.id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user