Exemple #1
0
        /// <summary>
        /// 禁止登陆
        /// </summary>
        /// <returns></returns>
        public static bool isDenyLogin()
        {
            bool DenyLogin = false;//禁止登陆

            try
            {
                DateTime MinDateTime = Convert.ToDateTime(MemberInfoDAL.GetMaxRegisterDate());

                if (DateTime.Now < MinDateTime || DateTime.Now > MaxDateTime)
                {
                    DenyLogin = true;
                }
            }
            catch { }
            return(DenyLogin);
        }