Is it possible to use the email instead of username in the login control.?
I'm using ASP.NET membership functionality.
I'd rather have each user account keyed on an
email instead of a user name. My main problem with user names is that
duplicates become likely and I don't want people to have to enter a bunch of
different user names before a unique one is found.
Mark Fitzpatrick - 13 Dec 2007 03:48 GMT
There's nothing to prevent you from asking them to use their email address
as a username. Simply use a regular expression validator when they create
their account to ensure they are entering a valid email. You'll probably
want to hand-code the account creation process and set the username and
email to the value they enter.

Signature
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression
> Is it possible to use the email instead of username in the login control.?
>
[quoted text clipped - 4 lines]
> of
> different user names before a unique one is found.
Michael Nemtsev - 13 Dec 2007 04:03 GMT
I found using the email as userID more intuitive.
and then u can provide the First/Second name to display user name, without
showing user email

Signature
WBR, Michael Nemtsev [.NET/C# MVP].
Blog: http://spaces.live.com/laflour
> Is it possible to use the email instead of username in the login control.?
>
[quoted text clipped - 3 lines]
> duplicates become likely and I don't want people to have to enter a bunch of
> different user names before a unique one is found.
Eliyahu Goldin - 13 Dec 2007 08:55 GMT
You can make use of the Membership.GetUserNameByEmail method to get the user
name and authenticate it programmatically.

Signature
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
> Is it possible to use the email instead of username in the login control.?
>
[quoted text clipped - 4 lines]
> of
> different user names before a unique one is found.