Open craigbrown opened 2 years ago
I've just come across this myself. Spent quite a lot of time trying to understand why the email claim input was not behaving as expected (compared to the standard user flows which are using EmailBox).
Some of our less technical minded users have been struggling with the sign up page as a result, I would just like to add some weight to this issue, it should be corrected in the TrustFrameworkBase.xml to be <UserInputType>EmailBox</UserInputType>
.
In the
TrustFrameworkBase.xml
files, severalClaimType
items which are specifically used for email addresses are marked as beingTextBox
types. For example:Using this claim type results in an
input
tag withtype="text"
on the sign-in page.I believe the
UserInputType
for the relevantClaimType
elements (signInNames.emailAddress
,email
, and possiblysignInName
) should be changed toEmailBox
instead, which will result in aninput
withtype="email"
.Apart from being more semantically accurate, this will mean mobile devices treat the email input appropriately - e.g. not auto-capitalizing the first character of the email address and not trying to auto-complete.
For browsers that don't support
type="email"
, they will fall back to treating the input astype="text"
.