예제 #1
0
파일: UserService.cs 프로젝트: radtek/XuHos
        /// <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
파일: UserService.cs 프로젝트: radtek/XuHos
        void _ResetLoginFaildCount(string account)
        {
            var CacheKey = new XuHos.Common.Cache.Keys.StringCacheKey(XuHos.Common.Cache.Keys.StringCacheKeyType.User_AccountLoginFail, account);

            CacheKey.RemoveCache();
        }