public override bool ResetPasswordWithToken(string token, string newPassword) { using (var session = DocumentStore.OpenSession()) { var user = BirdBrainHelper.GetUserByPasswordResetToken(token, session); if (user != null) { user.Password = BirdBrainMembershipProvider.HashPassword(newPassword); user.PasswordResetTokenExpiry = DateTime.MinValue; user.LastPasswordChange = DateTime.Now; session.SaveChanges(); return(true); } return(false); } }
protected internal BirdBrainExtendedMembershipProvider(BirdBrainMembershipProvider deletegateProvider) { DelegateProvider = deletegateProvider; }
public BirdBrainExtendedMembershipProvider() { DelegateProvider = new BirdBrainMembershipProvider(); }