marinofaggiana 5 роки тому
батько
коміт
7155b2ce21
2 змінених файлів з 2 додано та 3 видалено
  1. 0 1
      iOSClient/AppDelegate.h
  2. 2 2
      iOSClient/Networking/NCService.swift

+ 0 - 1
iOSClient/AppDelegate.h

@@ -67,7 +67,6 @@
 
 // Networking 
 @property (nonatomic, copy) void (^backgroundSessionCompletionHandler)(void);
-@property BOOL errorServerUnauthorized;
 
 // Network Share
 @property (nonatomic, strong) NSMutableDictionary *sharesID;

+ 2 - 2
iOSClient/Networking/NCService.swift

@@ -106,7 +106,7 @@ class NCService: NSObject {
             } else {
                 
                 if errorCode == kOCErrorServerUnauthorized {
-                    self.appDelegate.errorServerUnauthorized = true
+                    CCUtility.setPassword(account, password: nil)
                 }
                 
                 print("[LOG] It has been changed user during networking process, error.")
@@ -307,7 +307,7 @@ class NCService: NSObject {
                 self.appDelegate.settingThemingColorBrand()
                 
                 if errorCode == kOCErrorServerUnauthorized {
-                    self.appDelegate.errorServerUnauthorized = true
+                    CCUtility.setPassword(account, password: nil)
                 }
                 
             } else {