Browse Source

fix checkTrustedChallenge [rollback] + host

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana 3 years ago
parent
commit
3fb940655b
1 changed files with 3 additions and 4 deletions
  1. 3 4
      iOSClient/Login/NCLogin.swift

+ 3 - 4
iOSClient/Login/NCLogin.swift

@@ -349,11 +349,10 @@ class NCLogin: UIViewController, UITextFieldDelegate, NCLoginQRCodeDelegate {
             if NCManageDatabase.shared.getAccounts() == nil {
                 NCUtility.shared.removeAllSettings()
             }
+               
+            // Clear certificate error
+            NCNetworking.shared.certificatesError.removeAll()
             
-            if let host = URL(string: url)?.host {
-                NCNetworking.shared.certificatesError = NCNetworking.shared.certificatesError.filter(){$0 != "host"}
-            }
-                                    
             NCManageDatabase.shared.deleteAccount(account)
             NCManageDatabase.shared.addAccount(account, urlBase: url, user: user, password: password)