MSDOTnet.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is it possible to use the email instead of username?

 
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> ASPNet
Author Message
Alexis



Joined: 08 Aug 2007
Posts: 1

PostPosted: Thu Dec 13, 2007 12:31 am    Post subject: Is it possible to use the email instead of username? Reply with quote

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.

Archived from group: microsoft>public>dotnet>framework>aspnet
Back to top
View user's profile Send private message
Mark Fitzpatrick



Joined: 08 Aug 2007
Posts: 18

PostPosted: Thu Dec 13, 2007 2:48 am    Post subject: Re: Is it possible to use the email instead of username? Reply with quote

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.


--
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression

"Alexis" wrote in message @microsoft.com...
> 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.
>
Back to top
View user's profile Send private message
Michael Nemtsev



Joined: 08 Aug 2007
Posts: 47

PostPosted: Thu Dec 13, 2007 1:03 am    Post subject: RE: Is it possible to use the email instead of username? Reply with quote

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

--
WBR, Michael Nemtsev [.NET/C# MVP].
Blog: http://spaces.live.com/laflour



"Alexis" wrote:

> 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.
>
Back to top
View user's profile Send private message
Eliyahu Goldin



Joined: 08 Aug 2007
Posts: 39

PostPosted: Thu Dec 13, 2007 3:55 pm    Post subject: Re: Is it possible to use the email instead of username? Reply with quote

You can make use of the Membership.GetUserNameByEmail method to get the user
name and authenticate it programmatically.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"Alexis" wrote in message @microsoft.com...
> 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.
>

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
WSE 1.0, .NET v 1 sp2 - Username Signing with Output filter Hi All, I have an application that calls a webservice and provides the username as part of the SOAP call. I have tried to implement the setting up of Username etc.. in the SOAP Context as an output filter on the client. However, I am getting a reference i

.asp working great - asp.NET prompts for username/pass? I have the following function below which simply queries the SMS server and returns the machine name based on a users id (strUser). Now, I can call this function in .asp and it works great, but when I port this over to asp.net and I call the same function

email I used eVC++ 3.0 and the VOMAPI classes from Virtual Office Systems. However, these classes have some problems which I have fixed. There is also a problem with PPC 2003 which I have a workaround for as well. Any chance of getting paid to share??

Email with Attachments Can anyone tell me where I might find information on CEMAPI and in particular how I might generate an email with attachments from my program. I prefer to use VS 2003 which means using C#, but could use something else if needed. Thanks, Allen

Verify email address I keep getting the "verify email address" message but no email has been sent to my inbox to verify. How do I work around or get an email to verify?
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> ASPNet All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group