예제 #1
0
 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();
 }
예제 #4
0
 protected internal BirdBrainExtendedMembershipProvider(BirdBrainMembershipProvider deletegateProvider)
 {
     DelegateProvider = deletegateProvider;
 }
예제 #5
0
 public BirdBrainExtendedMembershipProvider()
 {
     DelegateProvider = new BirdBrainMembershipProvider();
 }