Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: Unique phone number error returns "email already exits" error. #6041

Closed
2 tasks done
divanov11 opened this issue Aug 26, 2023 · 2 comments
Closed
2 tasks done
Assignees
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

Comments

@divanov11
Copy link

👟 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.

users.create(
    appwrite_user_id,
    self.email,
    '+5552782908',
    self.password, 
    self.name,
)

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?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@divanov11 divanov11 added the bug Something isn't working label Aug 26, 2023
@eldadfux eldadfux added the product / auth Fixes and upgrades for the Appwrite Auth / Users / Teams services. label Aug 27, 2023
@joeyouss
Copy link

joeyouss commented Aug 27, 2023

Hi @divanov11 , I tried it on Cloud - yes, you're right
But, on latest version this does not happen. This means it is fixed for newer versions and once Cloud is updated, it will reflect those changes.

Closing this issue.

@joeyouss joeyouss added the product / cloud Issues found only on Appwrite Cloud label Aug 27, 2023
@joeyouss joeyouss self-assigned this Aug 27, 2023
@divanov11
Copy link
Author

Ok great! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants