Beispiel #1
0
        public override void UpdateUser(MembershipUser user)
        {
            if (user == null)
            {
                throw new ArgumentNullException("user");
            }

            N2.Security.Items.User u = Bridge.GetUser(user.UserName);
            if (u != null)
            {
                u.UpdateFromMembershipUser(user); // JH: note that password remains unaffected
                Bridge.Save(u);
            }
            else
            {
                throw new N2Exception("User '" + user.UserName + "' not found.");
            }
        }
Beispiel #2
0
        public override void UpdateUser(MembershipUser user)
        {
            if (user == null)
            {
                throw new ArgumentNullException("user");
            }

            Items.User u = Bridge.GetUser(user.UserName);
            if (u != null)
            {
                u.UpdateFromMembershipUser(user);
                Bridge.Save(u);
            }
            else
            {
                throw new N2Exception("User '" + user.UserName + "' not found.");
            }
        }