Exemplo n.º 1
0
        public override MembershipUser GetUser(object providerUserKey, bool userIsOnline)
        {
            var user = DbEntryMembershipUser.FindById((long)providerUserKey);

            user.LastActivityDate = DateTime.Now;
            user.Save();
            return(user.ToMembershipUser());
        }
Exemplo n.º 2
0
        public override void UpdateUser(MembershipUser user)
        {
            var u = DbEntryMembershipUser.FindById((long)user.ProviderUserKey);

            if (u != null)
            {
                u.Email            = user.Email;
                u.PasswordQuestion = user.PasswordQuestion;
                u.IsApproved       = user.IsApproved;
                u.Comment          = user.Comment;
                u.Save();
            }
        }