Skip to content

Commit

Permalink
emailerror
Browse files Browse the repository at this point in the history
  • Loading branch information
rishdhingra committed Oct 16, 2024
1 parent c5abffb commit 2990a0e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/lib/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,13 @@ export async function SignUp(
}
}
}
}
//coment
else {
} else if (res_json.statusCode === 400){
if (res_json.message && res_json.message.includes("Duplicate User")){
resp.error = "Email already in use";
}else {
resp.error = "Bad request. Please check your input.";
}
} else {
if (res_json.body) {
resp.error = res_json.body;
} else {
Expand Down

0 comments on commit 2990a0e

Please sign in to comment.