🐛 Bug Report: Unique phone number error returns "email already exits" error. #6041
Closed
2 tasks done
Labels
bug
Something isn't working
product / auth
Fixes and upgrades for the Appwrite Auth / Users / Teams services.
product / cloud
Issues found only on Appwrite Cloud
👟 Reproduction steps
When creating a new user (from a python backend) I kept running into the following error even though I new for a fact that the emails I was using to test were unique:
Error: A user with the same email already exists in your project.
I realized this was not due to a duplicate email, but a duplicate phone number since I accidentally hard coded the value when testing.
The error can be duplicated by calling the function above more than once.
👍 Expected behavior
Error should return the following:
Error: A user with the same phone number already exists in your project.
👎 Actual Behavior
Error: A user with the same email already exists in your project.
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
MacOS
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: