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

Similar Threads

Validate User 2
Forms Authentication 2
How to Sign Out in Asp.Net 2.0? 5
web.config question 7
Membership 2
how to hash impersonated password 2
How authenticate user manually? 3
Authentication 1

Top