public override bool ValidateUser(string username, string password) { // this is where you should validate your user credentials against your database. // I've made an extra class so i can send more parameters // (in this case it's the CurrentTerritoryID parameter which I used as // one of the MyMembershipProvider class properties). var oUserProvider = new MyUserProvider(); return(oUserProvider.ValidateUser(username, password, CurrentTerritoryID)); }
public override bool ValidateUser(string username, string password) { var oUserProvider = new MyUserProvider(); return(oUserProvider.ValidateUser(username, password, CurrentTerritoryID)); }