Example #1
0
 public User SetPasswordExpiration(User user)
 {
     if (user != null)
     {
         if (user.UserId != null)
         {
             ITypeReader reader = new SqlDataExecutor().QueryReader(null, _dbConnName, StoredProcedure.SetPasswordExpiration, user.UserId, "");
             reader.Read();
             user.PasswordExpiration = reader.GetDate("ExpirationDate");
         }
     }
     return(user);
 }