问题
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