Asp.net has the ability to recover passwords based on username. Users typically log into my site once a year and many have forgotten their username. Is there anyway for a user to enter their email address to recover their forgotten username?
usually when registering the email is required to be unique (the username as well). GEtting the username associated with an email is a trivial SQL matter
select username from users where email=@email
HOwever there isn’t any module doing that automatically unless you’re using the Asp.Net Membership provider
Sorry, I don’t know how. But you mean so they can enter their password and get their name? Seems as long as both are stored away there should be some way to do that.
I’m guessing that’s a rather rare scenario, may have to write some lines.
Email addresses aren’t necessarily unique. I don’t know that it’s a good idea to go this route. If someone can’t remember their user name I’m not sure you can expect them to remember their email address.
I know what you’re going through though. I had one lady that freaked out when I logged in on her computer because she didn’t know her user name and as long as it wasn’t changed she just had to remember the password. Strangely, her user name was her actual name.
You could try to require they use their real names but as you see that isn’t foolproof either.