Example #1
0
        public static MembershipUser ToMembershipUser(PlayerCorporation player)
        {
            var user = new MembershipUser("XmlMembershipProvider",
                                        player.Username,
                                        player.ID,
                                        player.Email,
                                        null,
                                        null,
                                        player.IsApproved,
                                        player.IsLockedOut,
                                        player.CreateDate,
                                        player.LastLoginDate ?? DateTime.MinValue,
                                        player.LastActivityDate ?? DateTime.MinValue,
                                        player.LastPasswordChangeDate ?? DateTime.MinValue,
                                        player.LastLockoutDate ?? DateTime.MinValue);

            return user;
        }
Example #2
0
 public static void Update(PlayerCorporation player)
 {
     player.LastActivityDate = DateTime.Now;
     player.PasswordAttempts = 0;
 }