Пример #1
0
        /// <summary>
        /// 是否验证过密码的版块
        /// </summary>
        /// <param name="forum"></param>
        /// <returns></returns>
        public bool IsValidatedForum(Forum forum)
        {
            string key = string.Format(ForumBO.Key_ForumPassword, forum.ForumID);

            string password = TempDataBox.GetData(key);

            if (password == null)
            {
                password = string.Empty;
            }

            if (StringUtil.EqualsIgnoreCase(forum.Password, password))
            {
                return(true);
            }
            return(false);
        }
Пример #2
0
        public void AddValidatedForumID(int forumID, string password)
        {
            string key = string.Format(ForumBO.Key_ForumPassword, forumID);

            TempDataBox.SetData(key, password);
        }