Marino Faggiana 6 роки тому
батько
коміт
d9d59031d0
2 змінених файлів з 12 додано та 1 видалено
  1. 11 0
      iOSClient/AppDelegate.m
  2. 1 1
      iOSClient/Main/CCSplit.m

+ 11 - 0
iOSClient/AppDelegate.m

@@ -345,6 +345,17 @@
                 });
             }
             
+        } else if ([NCBrandOptions sharedInstance].disable_intro && [NCBrandOptions sharedInstance].disable_request_login_url) {
+            
+            _activeLoginWeb = [CCLoginWeb new];
+            _activeLoginWeb.delegate = delegate;
+            _activeLoginWeb.loginType = loginType;
+            _activeLoginWeb.urlBase = [[NCBrandOptions sharedInstance] loginBaseUrl];
+            
+            dispatch_async(dispatch_get_main_queue(), ^ {
+                [_activeLoginWeb open:viewController];
+            });
+            
         } else {
             
             if (!(_activeLogin.isViewLoaded && _activeLogin.view.window)) {

+ 1 - 1
iOSClient/Main/CCSplit.m

@@ -133,7 +133,7 @@
         
         [CCUtility setIntro:YES];
         if (appDelegate.activeAccount.length == 0) {
-            [appDelegate openLoginView:self delegate:self loginType:k_login_Add selector:k_intro_login];
+            [appDelegate openLoginView:self delegate:self loginType:k_login_Add_Forced selector:k_intro_login];
         }
     
     } else {