Remove First name & last name field from firebase auth - email

久未见 提交于 2021-02-11 12:20:14

问题


I am using firebase auth for my website i have enabled Google, facebook & Email based auth everything works fine, But when using Email login Users are required to enter Firstname But i don't need these details and want to keep the user login / signup process short

Question : Can we remove the First & Lastname fields from firebase auth email


回答1:


From the documentation it seems you can toggle the requirement to enter a name with requireDisplayName.

From that link comes this example:

ui.start('#firebaseui-auth-container', {
  signInOptions: [
    {
      provider: firebase.auth.EmailAuthProvider.PROVIDER_ID,
      requireDisplayName: false
    }
  ]
});


来源:https://stackoverflow.com/questions/62721346/remove-first-name-last-name-field-from-firebase-auth-email

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!