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 {