public void VerifyBindPin(UserAccount user, string pin) { SecurityVerify.Verify(new PinVerifier(), SystemPlatform.FiiiPay, user.Id.ToString(), user.Pin, pin); var model = new BindGoogleAuth { PinVerified = true }; SecurityVerify.SetModel(new CustomVerifier("BindGoogleAuth"), SystemPlatform.FiiiPay, user.Id.ToString(), model); }
public void VerifyBindPin(Guid accountId, string pin) { var merchant = new MerchantAccountDAC().GetById(accountId); SecurityVerify.Verify(new PinVerifier(), SystemPlatform.FiiiPOS, merchant.Id.ToString(), merchant.PIN, pin); var model = new BindGoogleAuth { PinVerified = true }; SecurityVerify.SetModel(new CustomVerifier("BindGoogleAuth"), SystemPlatform.FiiiPOS, merchant.Id.ToString(), model); }