captainhowdy captainhowdy

Niner since 2007


  • Setting up a Custom Membership Provider

    Using this example, how would you expand on this to have your custom ValidateUser method change the FailureText property of the Login control to show different error messages depending on values of fields in the custom SQL database?

    For example, I have a field in my custom SQL database that will be a bit field called isActive. If isactive is false and the user enters correct login information, I want the login control's error message to say "You entered correct login information, but your account is inactive. Please call ###-###-#### to have your account enabled."

    ...or is the ValidateUser method not the correct place to do this?