Browse Source

mobile no vefirilcation added

pull/1/head
gme_2 6 years ago
parent
commit
bf444ed465
  1. 5
      GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift
  2. 1
      GMERemittance/Utility/AppConstants.swift

5
GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift

@ -57,7 +57,10 @@ 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) let result = (sucks, errorsDick) // (isValid, errorsDick)
return result return result

1
GMERemittance/Utility/AppConstants.swift

@ -18,6 +18,7 @@ class AppConstants {
static let themeBlueColor = UIColor.init(hex: "#010538") static let themeBlueColor = UIColor.init(hex: "#010538")
static let themWhiteColor = UIColor.init(hex: "#ffffff") static let themWhiteColor = UIColor.init(hex: "#ffffff")
static let emergencyLogoutErrorCode = -1111 static let emergencyLogoutErrorCode = -1111
static let maxKoreanMobileNoLength = 11
} }
enum Devices { enum Devices {

Loading…
Cancel
Save