public override bool ValidateUser(string username, string password) { bool isValid = false; _UserRep = BootStrapper.GetCurrentUserRepository(); tUser user = _UserRep.GetSingleByUsernamePassword(username, password); if (user != null) { isValid = (bool)user.Approved;// && user.UserStatus == (int)B2B.Core.Enums.enmUserStatus.Active; } return isValid; }