Is there a Membership.ValidateUser alternative that only checks username password combo? In other words, is there a way I can tell that the username and password are correct but the user is not valid? It may come handy when implementing confirmation email for registrations.
Is there a Membership.ValidateUser alternative that only checks username password combo? In other words,
Share
Yes,
simply do a lookup in the user datastore.
eg.
EDIT:
for the encrypted password I use and MD5 Hash. so this helper class might be helpful
and you might do something like this for your test method
I haven’t compiled or tested this but it should give you the gist of what you are after.