From 53a5f882a741e3ab4c39d738eee79ffaa0513406 Mon Sep 17 00:00:00 2001 From: InKwon James Kim Date: Tue, 10 Dec 2019 09:24:27 +0900 Subject: [PATCH] modified biometric at recharge payment --- .../BiometricAuthenticationViewController.swift | 14 +++++++------- .../View/RechargePaymentViewController.swift | 6 +++++- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/GME Remit/Modules/BiometricAuthModules/BiometricAuthentication/User Interface/View/BiometricAuthenticationViewController.swift b/GME Remit/Modules/BiometricAuthModules/BiometricAuthentication/User Interface/View/BiometricAuthenticationViewController.swift index 37705881..5e5b86a9 100644 --- a/GME Remit/Modules/BiometricAuthModules/BiometricAuthentication/User Interface/View/BiometricAuthenticationViewController.swift +++ b/GME Remit/Modules/BiometricAuthModules/BiometricAuthentication/User Interface/View/BiometricAuthenticationViewController.swift @@ -138,12 +138,12 @@ final class BiometricAuthenticationViewController: UIViewController, BiometricAu } private func showAuthentication() { - #if DEBUG - DispatchQueue.main.async { - self.delegate?.didComplete(self) - } - - #else +// #if DEBUG +// DispatchQueue.main.async { +// self.delegate?.didComplete(self) +// } +// +// #else guard let isUseBiometricAuth = KeyChain.shared.get(key: .biometricAuth), isUseBiometricAuth == "1" else { @@ -157,6 +157,6 @@ final class BiometricAuthenticationViewController: UIViewController, BiometricAu return } self.presenter?.showBiometricAuthentication() - #endif +// #endif } } diff --git a/GME Remit/Modules/PowerCallModules/RechargePayment/User Interface/View/RechargePaymentViewController.swift b/GME Remit/Modules/PowerCallModules/RechargePayment/User Interface/View/RechargePaymentViewController.swift index baf25665..1d859568 100644 --- a/GME Remit/Modules/PowerCallModules/RechargePayment/User Interface/View/RechargePaymentViewController.swift +++ b/GME Remit/Modules/PowerCallModules/RechargePayment/User Interface/View/RechargePaymentViewController.swift @@ -146,7 +146,11 @@ extension RechargePaymentViewController { rechargeButton.rx.tap.asDriver() .drive(onNext: {[weak self] in guard let `self` = self else {return} - BiometricAuthenticationWireframe().openWithDelegate(on: self, delegate: self) + if let isUseBiometric = KeyChain.shared.get(key: .biometricAuth), isUseBiometric == "1" { + BiometricAuthenticationWireframe().openWithDelegate(on: self, delegate: self) + } else { + self.showSecureKeypad() + } }).disposed(by: disposeBag) availableBalance.asDriverOnErrorJustComplete()