Пример #1
0
        /// <summary>
        /// 检查验证码是否正确
        /// </summary>
        /// <param name="VerifyCode"></param>
        /// <param name="appToken"></param>
        /// <returns></returns>
        public bool CheckVerifyCode(string VerifyCode, string VerifyCodeID)
        {
            var CacheKey = new XuHos.Common.Cache.Keys.StringCacheKey(XuHos.Common.Cache.Keys.StringCacheKeyType.VerifyCode, VerifyCodeID);
            var value    = CacheKey.FromCache <string>();

            CacheKey.RemoveCache();
            if (value != VerifyCode.Trim())
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
Пример #2
0
        void _ResetLoginFaildCount(string account)
        {
            var CacheKey = new XuHos.Common.Cache.Keys.StringCacheKey(XuHos.Common.Cache.Keys.StringCacheKeyType.User_AccountLoginFail, account);

            CacheKey.RemoveCache();
        }