Browse Source

modified biometric at recharge payment

pull/1/head
InKwon James Kim 5 years ago
parent
commit
53a5f882a7
  1. 14
      GME Remit/Modules/BiometricAuthModules/BiometricAuthentication/User Interface/View/BiometricAuthenticationViewController.swift
  2. 4
      GME Remit/Modules/PowerCallModules/RechargePayment/User Interface/View/RechargePaymentViewController.swift

14
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
}
}

4
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}
if let isUseBiometric = KeyChain.shared.get(key: .biometricAuth), isUseBiometric == "1" {
BiometricAuthenticationWireframe().openWithDelegate(on: self, delegate: self)
} else {
self.showSecureKeypad()
}
}).disposed(by: disposeBag)
availableBalance.asDriverOnErrorJustComplete()

Loading…
Cancel
Save