views:

19

answers:

0

Hi, I have a custom membership provider I made up to use because our database is completely different than the ASP one. It does not have any fields such as PasswordQuestion, IsAnonymous, LastActivityDate...I mean our DB uses none of those and stores roles in the same Table as Users so I'm not sure if using the provider makes any sense.

Currently, my Validate method works, user is logged in, LoginView says user logged in, but when I go to a page to Change the userName and password, it Gets the user but when it goes through the Custom membership and returns to the code of the Asp page, the user is Null.

I think in my provider this is causing an issue:

Dim u As MembershipUser = Nothing Dim reader As SqlDataReader = Nothing

If it is set to Nothing, and at the bottom of the GetUser method it its returning u, then it will always be null, correct?