account.create phone and password values are not updated to the console after signup[Solved]
- 0
- Users
- Accounts
- Web

I'm using appwrite for the first time. And I tried to sigunup user, I tested the form by signing up, and checked my appwrite console. Only the email and name values returned, the phone and password value that I filled in didn't appear in the console.
Here's is my code that handles the call
const handleSignUpSubmit = async (e) => { e.preventDefault(); try { const { email, password, phone, name } = userDetails; const newUser = await account.create( ID.unique(), email, password, name, phone ); if (newUser) { console.log("User signed up successfully:", newUser); } else { console.log("Error signing up user:", newUser); } } catch (error) { console.error("Error signing up user:", error); } };
Below is the response I got from appwrite when I console.log the data been submitted.
User signed up successfully: { "$id": "655f0950d6ae1b22f830", "$createdAt": "2023-11-23T08:12:00.964+00:00", "$updatedAt": "2023-11-23T08:12:00.964+00:00", "name": "Adeola Joseph", "registration": "2023-11-23T08:12:00.879+00:00", "status": true, "labels": [], "passwordUpdate": "2023-11-23T08:12:00.879+00:00", "email": "joseph@gmail.com", "phone": "", "emailVerification": false, "phoneVerification": false, "prefs": {}, "accessedAt": "2023-11-23T08:12:00.879+00:00" }

account.create phone and password values are not updated to the console after successful signup

That’s correct. There are only four parameters for createUser()
- UserID, email, password, name.
If you want to set the phone number, you can call `account.updatePhone()’ after creating the account.

You’re not able to see a user’s password, but it will have been set!

Ok

Thank you

Np! If your issue has been solved, you can close this post by adding “[SOLVED]” to the beginning of the title

account.create phone and password values are not updated to the console after signup[Solved]

To the beginning of the title 😉
Recommended threads
- Invalid document structure: Unknown attr...
I have an attribute, who I deleted but it still gives error saying that Invalid document structure: Unknown attribute: "financialAidAvailable". Because of which...
- Image Loading issue in Snapgram project
Hello community, I have a issue with the Image Loading I made a Project from youtube of Snapgram, it worked perfectly 8 months ago, but now the images aren't l...
- No Targets Created For Email OTP Users
I use OTP for my users. All emails are verified. No one has their email as a target. What am I doing wrong? The documentation says the targets should be created...
