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

Phone Number Not Stored During Signup When Email Confirmation Enabled #1305

Open
chatdmc opened this issue Nov 7, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@chatdmc
Copy link

chatdmc commented Nov 7, 2024

When both email and phone number are provided during user signup, and:

  • Email confirmation is enabled
  • Phone confirmation is disabled

The phone number is incorrectly stored as null in the database. However, the same phone number can be successfully stored when using the updateUser method.

Signup function
image

value of formData.adminMobile: +919996381211

Update user function
image

value of formData.adminMobile: +919996381211

But in case of update it got updated in auth.users table

Steps to Reproduce

  1. Configure system with:
    • Email confirmation: enabled
    • Phone confirmation: disabled
  2. Attempt to create a new user with both email and phone number
  3. Check the stored user data in the database
  4. Attempt to update the same user with a phone number using updateUser

Current Behavior

  • During signup: Phone number is stored as null
  • During update: Phone number is stored correctly

Expected Behavior

Phone number should be stored correctly in both scenarios:

  • During initial user signup
  • During user update

Labels

  • bug
  • authentication
  • user-management
@chatdmc chatdmc added the bug Something isn't working label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant