FirebaseUI-Android icon indicating copy to clipboard operation
FirebaseUI-Android copied to clipboard

Configure email signIn to not ask first and last name?

Open Paul776 opened this issue 9 years ago • 13 comments

Hi

Is it possible customise the email signup screen to not ask the first and last name ?

Thanks

Paul776 avatar Dec 21 '16 11:12 Paul776

@Paul776 that's not currently possible in the library but I do think that would be a good customization for the future.

The main roadblock to adding this and other minor customizations is we want to avoid filling the library with boolean flags that create more room for error (by us or by devs using the library).

samtstern avatar Dec 21 '16 21:12 samtstern

I understand, and yes this could be marked as an "improvement suggestion" then. As a starter that field can be either "hidden" or maybe simply give a customisation possibility to change the text label. (due to the nature of my app I'd rather call that field "nickname" than first name and last name.

Paul776 avatar Dec 22 '16 08:12 Paul776

@Paul776 You can actually do that by creating a string resource overriding FirebaseUI's: <string name="name_hint">Nickname</string>.

Do watch out for new versions FirebaseUI though because they may change the ids of these string resources at anytime and without notice.

SUPERCILEX avatar Dec 31 '16 20:12 SUPERCILEX

Tracking on other platforms:

  • https://github.com/firebase/firebaseui-web/issues/41
  • https://github.com/firebase/FirebaseUI-iOS/issues/245

samtstern avatar Feb 15 '17 16:02 samtstern

@samtstern Ok, if #1083 goes through, we can do some crazy cool stuff! I'm not sure if we'd want this kind of feature, but I was thinking of enabling a fully customizable sign-in field template. That is, devs would be able to supply required and optional fields that we generate views for on-the-fly and use annotations and reflection to support custom validation.

The new builder APIs in my PR would enable this kind of customization that could be used to build conference apps or something else that requires many fields. What do you think? If you like the idea, I'd whip up a PR so we can have it ready by v3.2.0.

SUPERCILEX avatar Dec 31 '17 09:12 SUPERCILEX

@SUPERCILEX let's first offer a long-awaited flag for this particular issue, release 3.2.0 and then do further features based on demand. I don't really like the words "crazy" and "reflection" used together in a feature proposal :-)

samtstern avatar Jan 03 '18 01:01 samtstern

@samtstern Haha, that SGTM. At least the doors will be open now! 😁

SUPERCILEX avatar Jan 03 '18 01:01 SUPERCILEX

@SUPERCILEX That would be the feature that I actually wanted/needed for a long time. But since I am still not done with other parts of my app, I was too lazy to actually try to implement this.

Kurt29 avatar Jan 04 '18 08:01 Kurt29

Is this issue still can't be fixed? Same here as someone already said. "First & last name" simply sounds weird in my app and might scare people to type anything.

Levelleor avatar Jan 14 '18 21:01 Levelleor

@Levelleor this is on the 3.2.0 milestone which means we hope to close it in our next release. @SUPERCILEX did some refactoring to make this possible.

samtstern avatar Jan 16 '18 16:01 samtstern

@SUPERCILEX this is the last bug on the 3.2.0 hotlist that is not fix-implemented. We should probably implement this and then release 3.2.0, get some of the new architecture out into the wild before racing ahead any further.

samtstern avatar Jan 18 '18 02:01 samtstern

@samtstern Yup, SGTM!

SUPERCILEX avatar Jan 18 '18 21:01 SUPERCILEX

This has been fixed and released in version 3.2.0.

samtstern avatar Jan 22 '18 22:01 samtstern