Authentication ... going crazy here.

S

shapper

Hello,

I added a user using Membership and in my SQL 2005 database I see the
user data.

I set PasswordFormat to Clear in my Web.Config so I can see the
password.

I went to my SQL 2005 database and the username is: "miguel" and the
password is "mypass".

Then I did the following:

lResult.Text = Membership.ValidateUser("miguel", "mypass").ToString

I get FALSE!

I tried everything I could think of and I am never authenticated. How
can I find what is going wrong?

Thanks,

Miguel
 
S

shapper

Hello,

I added a user using Membership and in my SQL 2005 database I see the
user data.

I set PasswordFormat to Clear in my Web.Config so I can see the
password.

I went to my SQL 2005 database and the username is: "miguel" and the
password is "mypass".

Then I did the following:

lResult.Text = Membership.ValidateUser("miguel", "mypass").ToString

I get FALSE!

I tried everything I could think of and I am never authenticated. How
can I find what is going wrong?

Thanks,

Miguel

Solved. The user was not approved.

Thanks,
Miguel
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top