예제 #1
0
파일: Users.cs 프로젝트: wenysky/mydnt
        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;
        }
예제 #2
0
파일: AsyncSites.cs 프로젝트: wenysky/mydnt
 public ProcessRegister(User userInfo, AsyncSiteInfo asyncSiteInfo)
 {
     this._siteInfo = asyncSiteInfo;
     this._userInfo = userInfo;
 }
예제 #3
0
파일: AsyncSites.cs 프로젝트: wenysky/mydnt
 public ProcessUpdateUser(User userInfo, AsyncSiteInfo asyncSiteInfo, UserForEditing userForEditing)
 {
     this._userInfo = userInfo;
     this._siteInfo = asyncSiteInfo;
     this._userForEditing = userForEditing;
 }