IOS-1542 Trigger verification. IOS-1542
authorDirk Zimmermann <dz@pep.security>
Wed, 24 Apr 2019 12:43:18 +0200
branchIOS-1542
changeset 8361fa62d14b2f33
parent 8360 5fc3e8979152
child 8362 5d523a83acd4
IOS-1542 Trigger verification.
pEpForiOS/UI/Settings/Setting/AccountSettings/ViewModel/AccountSettingsViewModel.swift
     1.1 --- a/pEpForiOS/UI/Settings/Setting/AccountSettings/ViewModel/AccountSettingsViewModel.swift	Wed Apr 24 12:43:18 2019 +0200
     1.2 +++ b/pEpForiOS/UI/Settings/Setting/AccountSettings/ViewModel/AccountSettingsViewModel.swift	Wed Apr 24 12:43:18 2019 +0200
     1.3 @@ -98,7 +98,10 @@
     1.4  
     1.5          theVerifier.address = email
     1.6          theVerifier.userName = name
     1.7 +
     1.8 +        // TODO: How to handle if the password got changed or not?
     1.9          theVerifier.password = password
    1.10 +
    1.11          if loginName != email {
    1.12              theVerifier.loginName = loginName
    1.13          }
    1.14 @@ -125,6 +128,14 @@
    1.15              theVerifier.transportSMTP = ConnectionTransport.init(transport: transport)
    1.16          }
    1.17  
    1.18 +        // TODO: Set delegate.
    1.19 +
    1.20 +        do {
    1.21 +            try theVerifier.verify()
    1.22 +        } catch {
    1.23 +            delegate?.didVerify(result: .noImapConnectData, accountInput: theVerifier)
    1.24 +        }
    1.25 +
    1.26          // TODO: Implement
    1.27          /*
    1.28          guard let serverImap = account.imapServer,