IOS-1542 VerifiableAccountProtocol public so it can be overridden. IOS-1542
authorDirk Zimmermann <dz@pep.security>
Thu, 25 Apr 2019 16:25:40 +0200
branchIOS-1542
changeset 8383ff79069bcf29
parent 8382 855ff0a20d53
child 8384 9404686a5d53
IOS-1542 VerifiableAccountProtocol public so it can be overridden.
pEpForiOS/UI/Settings/Setting/AccountSettings/ViewModel/AccountSettingsViewModel.swift
     1.1 --- a/pEpForiOS/UI/Settings/Setting/AccountSettings/ViewModel/AccountSettingsViewModel.swift	Thu Apr 25 16:25:40 2019 +0200
     1.2 +++ b/pEpForiOS/UI/Settings/Setting/AccountSettings/ViewModel/AccountSettingsViewModel.swift	Thu Apr 25 16:25:40 2019 +0200
     1.3 @@ -44,6 +44,10 @@
     1.4      public let svm = SecurityViewModel()
     1.5      public let isOAuth2: Bool
     1.6  
     1.7 +    /// Holding both the data of the current account in verification,
     1.8 +    /// and also the implementation of the verification.
     1.9 +    public var verifiableAccount: VerifiableAccountProtocol?
    1.10 +
    1.11      public init(account: Account) {
    1.12          // We are using a copy of the data here.
    1.13          // The outside world must not know changed settings until they have been verified.
    1.14 @@ -86,10 +90,6 @@
    1.15  
    1.16      weak var delegate: AccountVerificationResultDelegate?
    1.17  
    1.18 -    /// Holding both the data of the current account in verification,
    1.19 -    /// and also the implementation of the verification.
    1.20 -    private var verifiableAccount: VerifiableAccountProtocol?
    1.21 -
    1.22      /// If the credentials have either an IMAP or SMTP password,
    1.23      /// it gets stored here.
    1.24      private var originalPassword: String?