Closed julianseeger closed 7 years ago
is_email = '@' in input
normally, this happens before typing the @ username12345@bla.com ... as soon as you type the "12", it get's reformatted ... it's a feature, not a bug ;)
Hmm, you can't really determine from any prefix (up to an @ or "finish")whether it's an email or a phone number. Some ISPs even issued emails where the mailbox actually is a valid phone number...
We probably shouldn't reformat it after we have a successful hit. Maybe not even then
Are the requests normalized Server side? Like if I type a phone number without language code, what happens? Otherwise we need two Inputs
I was surprised that filling in a phone number without country code works at all - perhaps we do it like in my mockups...
The Idea was to Autoformat the users phone number using his locale but that is error prone and thus we need to show the result to the user so that he can fix it on failure... but that only works if we know that it actually is a phone number and not an Email address
Are the requests normalized Server side? Like if I type a phone number without language code, what happens? Otherwise we need two Inputs
They are normalized for all incoming requests according to the language specified by the client, with a fallback to German.
What about this:
The user can type whatever he wants but we show, what exactly we are searching for.
This way, the user can adjust the input if it's not what he wanted (like adding a language prefix if neccessary) and can reach the "@" symbol without being interrupted.
This looks way too reasonable, we need to find a more complicated solution.
I always asked myself why some other interfaces use a drop down menu for selecting the country and actually working with (mobile) phone numbers -- and seeing the problems -- make me understand this :) Now I like the idea of the mockups but without further discussions about this (after the release) I'm still not sure about this. So we should stick with the solution we already have.
...fails because the phonenumber formatter gets activated and reformats them to a number...