예제 #1
0
        public void VerifyOpenGoogleAuth(UserAccount user, string code)
        {
            SecurityVerify.Verify(new GoogleVerifier(), SystemPlatform.FiiiPay, user.Id.ToString(), user.AuthSecretKey, code);
            var model = new OpenGoogleAuth {
                GoogleVerified = true
            };

            SecurityVerify.SetModel(new CustomVerifier("OpenGoogleAuth"), SystemPlatform.FiiiPay, user.Id.ToString(), model);
        }
예제 #2
0
        public void VerifyOpenGoogleAuth(Guid merchantId, string code)
        {
            var merchant = new MerchantAccountDAC().GetById(merchantId);

            SecurityVerify.Verify(new GoogleVerifier(), SystemPlatform.FiiiPOS, merchant.Id.ToString(), merchant.AuthSecretKey, code);
            var model = new OpenGoogleAuth {
                GoogleVerified = true
            };

            SecurityVerify.SetModel(new CustomVerifier("OpenGoogleAuth"), SystemPlatform.FiiiPOS, merchant.Id.ToString(), model);
        }