My problem is that I think 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.
I know I can change the prompt of the login control to read email instead of
username. Has anyone done this? Anything else I need to worry about?
BTW, I know there is an option to make emails unique but that wouldn't be
enough for what I want. I want to be able to create new accounts using an
email address and an automatically-generated password.
Thanks.
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
We made our own registration form and put this code behind the submit
button:
MembershipUser user = Membership.CreateUser(Email.Text, Password.Text,
Email.Text);
Roles.AddUserToRole(user.UserName, "Merchant");
FormsAuthentication.SetAuthCookie(user.UserName, false);
We've had no problems at all with it.
One question: can I ask why you wrote this code instead of just using the
Login control?
Thanks.
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
"Scott Roberts" <srob...@no.spam.here-webworks-software.com> wrote in
message news:ehJUPzIK...@TK2MSFTNGP05.phx.gbl...
Sorry, you asked about the login control but my answer was talking about
registering a new user. We do use the built-in login control for logging in.
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
"Scott Roberts" <srob...@no.spam.here-webworks-software.com> wrote in
message news:ezlhmqJK...@TK2MSFTNGP02.phx.gbl...
Correct. We just wanted a different look & feel for our registration page.
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
"Scott Roberts" <srob...@no.spam.here-webworks-software.com> wrote in
message news:O3oWF6JK...@TK2MSFTNGP03.phx.gbl...
Thanks,
Alexis