Example #1
0
        public static int AsyncUserPassword(string userName, string password)
        {
            DiscuzSession ds = DiscuzSessionHelper.GetMainSiteSession();

            User userInfo = new User();
            userInfo.UserName = userName;

            UserForEditing userForEditing = new UserForEditing();
            userForEditing.Password = password;

            List<AsyncSiteInfo> asyncSiteList = AsyncSites.GetAsyncSiteList();

            int successCount = 0;

            foreach (AsyncSiteInfo info in asyncSiteList)
            {
                if (!new ProcessUpdateUser(userInfo, info, userForEditing).Enqueue())
                    successCount++;
            }
            return successCount;
        }
Example #2
0
 public ProcessRegister(User userInfo, AsyncSiteInfo asyncSiteInfo)
 {
     this._siteInfo = asyncSiteInfo;
     this._userInfo = userInfo;
 }
Example #3
0
 public ProcessUpdateUser(User userInfo, AsyncSiteInfo asyncSiteInfo, UserForEditing userForEditing)
 {
     this._userInfo = userInfo;
     this._siteInfo = asyncSiteInfo;
     this._userForEditing = userForEditing;
 }