From bf444ed46592c75030325c161ed2f779adbe2321 Mon Sep 17 00:00:00 2001 From: gme_2 Date: Wed, 3 Oct 2018 20:15:02 +0900 Subject: [PATCH] mobile no vefirilcation added --- .../Kyc/Application Logic/Interactor/KycInteractor.swift | 7 +++++-- GMERemittance/Utility/AppConstants.swift | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift b/GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift index a29ae3c6..1489d485 100644 --- a/GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift +++ b/GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift @@ -57,8 +57,11 @@ class KycInteractor { } } - - + if let mobileNo = model?.email, mobileNo != "", mobileNo.count != AppConstants.maxKoreanMobileNoLength { + sucks = false + errorsDick[KycForm1FieldKeys.email] = "please enter valid mobile number" + } + let result = (sucks, errorsDick) // (isValid, errorsDick) return result // self.output?.show(result1: result) diff --git a/GMERemittance/Utility/AppConstants.swift b/GMERemittance/Utility/AppConstants.swift index 8388a62d..7b00d4c0 100644 --- a/GMERemittance/Utility/AppConstants.swift +++ b/GMERemittance/Utility/AppConstants.swift @@ -18,6 +18,7 @@ class AppConstants { static let themeBlueColor = UIColor.init(hex: "#010538") static let themWhiteColor = UIColor.init(hex: "#ffffff") static let emergencyLogoutErrorCode = -1111 + static let maxKoreanMobileNoLength = 11 } enum Devices {