简体   繁体   English

通过 firebase 注册用户并收集他的名字、姓氏、电话号码和地址时是否有可能?

[英]Is it possible when registering a user via firebase and react to collect his first name, last name, phone number and address?

I use the updateProfile function, but it seems to only collect first name and photo我使用 updateProfile 函数,但它似乎只收集名字和照片

You must have a user schema defined and exported as a model somewhere in your project directory.您必须在项目目录中的某处定义并导出为模型的用户模式。 Make sure that it contains all the required fields.确保它包含所有必填字段。 Then, in your updateProfile function, you can access and change any property that you want.然后,在您的updateProfile函数中,您可以访问和更改您想要的任何属性。

Also, provide the code for your function as it helps in understanding the question better.此外,请提供您的函数的代码,因为它有助于更好地理解问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 firebase 注册新用户时反应“在渲染不同组件时无法更新组件(`BrowserRouter`)”警告 - React "Cannot update a component (`BrowserRouter`) while rendering a different component" warning when registering a new user using firebase task.name 未显示在 React Firebase 应用程序中 - task.name not showing in React Firebase app 如何将电话号码与 firebase 实时数据库中的电话号码匹配(react-native) - How to match phone number with the phone number present in firebase real-time database (react-native) 尝试使用 firebase 验证电话号码时出现“无效令牌” - "Invalid Token" when trying to authenticate phone number using firebase 如何显示客户地址簿(通过电话号码)中仅注册联系人的列表(在 firebase 上) - How do I display list of only registered contacts(on firebase) from a client's address book(via phone numbers) 为什么更新显示名称时未调用 Firebase Auth userChanges() - Flutter - Why is Firebase Auth userChanges() not called when Display Name is updated - Flutter Firebase 身份验证 - 无法添加电话号码进行测试 - Firebase Auth - Unable to Add Phone Number for Testing 删除后,我可以在 firebase 中通过电话号码重新创建用户身份验证吗? - Can I re create user authentication by phone number in firebase after being deleted? firebase 存储文件名更改 - firebase storage file name change Firebase firestore 变量名称已更改 - Firebase firestore variable name changed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM