fix: error message when email exists (#16022)
* fix: error message when email exists * chore: change postion of error --------- Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
This commit is contained in:
1 parent
8a972a74c6
commit
c821f15a14
2 files changed
+9
-10
No files matched your search
@@ -78,7 +78,7 @@ const processResult = (
|
||||
case "username_exists":
|
||||
return {
|
||||
statusCode: 418,
|
||||
message: "A user exists with that username",
|
||||
message: "A user exists with that username or email",
|
||||
};
|
||||
case "is_premium":
|
||||
return { statusCode: 402, message: "This is a premium username." };
|
||||
|
||||
Reference in new issue
Block a user