|
@@ -253,6 +253,8 @@ class NCLogin: UIViewController, UITextFieldDelegate, NCLoginQRCodeDelegate {
|
|
|
|
|
|
if errorCode == 0 {
|
|
|
|
|
|
+ NCNetworking.shared.writeCertificate(url: url)
|
|
|
+
|
|
|
NCCommunication.shared.getLoginFlowV2(serverUrl: url) { (token, endpoint, login, errorCode, errorDescription) in
|
|
|
|
|
|
self.loginButton.isEnabled = true
|
|
@@ -303,7 +305,7 @@ class NCLogin: UIViewController, UITextFieldDelegate, NCLoginQRCodeDelegate {
|
|
|
let alertController = UIAlertController(title: NSLocalizedString("_ssl_certificate_untrusted_", comment: ""), message: NSLocalizedString("_connect_server_anyway_", comment: ""), preferredStyle: .alert)
|
|
|
|
|
|
alertController.addAction(UIAlertAction(title: NSLocalizedString("_yes_", comment: ""), style: .default, handler: { action in
|
|
|
- NCNetworking.shared.writeCertificate(directoryCertificate: CCUtility.getDirectoryCerificates(), url: url)
|
|
|
+ NCNetworking.shared.writeCertificate(url: url)
|
|
|
self.appDelegate.startTimerErrorNetworking()
|
|
|
}))
|
|
|
|