Is it possible to use the email instead of username?

A

Alexis

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.
 
M

Mark Fitzpatrick

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.
 
M

Michael Nemtsev

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top