コード例 #1
0
        public override bool DeleteUser(string username, bool deleteAllRelatedData)
        {
            var user = IMem.GetUser8Name(username);

            user.Frozen = true;
            IMem.UpdateUser(user);
            return(true);
        }
コード例 #2
0
        public override bool ChangePassword(string username, string oldPassword, string newPassword)
        {
            var user = IMem.GetUser8Name(username);

            if (user.Password == oldPassword)
            {
                user.Password = newPassword;
                IMem.UpdateUser(user);
                return(true);
            }
            else
            {
                return(false);
            }
        }