Login issue

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
15 Jahre weitere
i am passing email address as user id,
my page is not redirected to myaccount.aspx
though i haven't make my user id field case
sensitive.
I got all the data in lower case,
and the format i have used lowercase to store it in database.

even though it is not working when i am passing user id
in uppercase it doesn't work.

so plz help me.....
15 Jahre weitere
I had a little difficulty understanding your post but I believe the following will help you:


Changed MembershipHttpModule.cs Line 79

from:

if (customer.Email == HttpContext.Current.User.Identity.Name && customer.Active && !customer.Deleted)

to:

if (customer.Email.ToLower() == HttpContext.Current.User.Identity.Name.ToLower() && customer.Active && !customer.Deleted)


Reason:

Allows the user to login without matching the case sensitivity of their registered email address. Previously a user that registered with email [email protected] who logs in as [email protected] will fail to authenticate. The above code changes ensures that the emails are in lower case when verified.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.