Skip to content

Commit

Permalink
fix: Allow mentors to sign up with any email id
Browse files Browse the repository at this point in the history
  • Loading branch information
Lalit3716 committed Jul 16, 2024
1 parent d3d393a commit 7d4c66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/controllers/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const jwtSignup = async (req: Request, res: Response) => {
}
}

if (!/^[A-Za-z0-9._%+-][email protected]$/i.test(email)) {
if (!/^[A-Za-z0-9._%+-][email protected]$/i.test(email) && !mentor) {
return res.status(400).json({
error: 'You must use a Thapar email address',
});
Expand Down

0 comments on commit 7d4c66e

Please sign in to comment.