|
@@ -288,14 +288,13 @@ PKPushRegistry *pushRegistry;
|
|
|
|
|
|
if (!(_activeLoginWeb.isViewLoaded && _activeLoginWeb.view.window)) {
|
|
|
|
|
|
-// _activeLoginWeb = [CCLoginWeb new];
|
|
|
-// _activeLoginWeb.delegate = delegate;
|
|
|
-// _activeLoginWeb.loginType = loginType;
|
|
|
-// _activeLoginWeb.urlBase = [[NCBrandOptions sharedInstance] loginBaseUrl];
|
|
|
-//
|
|
|
-// dispatch_async(dispatch_get_main_queue(), ^ {
|
|
|
-// [_activeLoginWeb open:viewController];
|
|
|
-// });
|
|
|
+ self.activeLoginWeb = [[UIStoryboard storyboardWithName:@"CCLogin" bundle:nil] instantiateViewControllerWithIdentifier:@"NCLoginWeb"];
|
|
|
+
|
|
|
+ self.activeLoginWeb.urlBase = [[NCBrandOptions sharedInstance] loginBaseUrl];
|
|
|
+ self.activeLoginWeb.loginType = loginType;
|
|
|
+ self.activeLoginWeb.delegate = delegate;
|
|
|
+
|
|
|
+ [viewController presentViewController:self.activeLoginWeb animated:YES completion:nil];
|
|
|
}
|
|
|
return;
|
|
|
}
|
|
@@ -314,31 +313,28 @@ PKPushRegistry *pushRegistry;
|
|
|
|
|
|
if (!(_activeLoginWeb.isViewLoaded && _activeLoginWeb.view.window)) {
|
|
|
|
|
|
-// _activeLoginWeb = [CCLoginWeb new];
|
|
|
-// _activeLoginWeb.delegate = delegate;
|
|
|
-// _activeLoginWeb.loginType = loginType;
|
|
|
-//
|
|
|
-// if (selector == k_intro_signup) {
|
|
|
-// _activeLoginWeb.urlBase = [[NCBrandOptions sharedInstance] linkloginPreferredProviders];
|
|
|
-// } else {
|
|
|
-// _activeLoginWeb.urlBase = self.activeUrl;
|
|
|
-// }
|
|
|
-//
|
|
|
-// dispatch_async(dispatch_get_main_queue(), ^ {
|
|
|
-// [_activeLoginWeb open:viewController];
|
|
|
-// });
|
|
|
+ self.activeLoginWeb = [[UIStoryboard storyboardWithName:@"CCLogin" bundle:nil] instantiateViewControllerWithIdentifier:@"NCLoginWeb"];
|
|
|
+
|
|
|
+ if (selector == k_intro_signup) {
|
|
|
+ self.activeLoginWeb.urlBase = [[NCBrandOptions sharedInstance] linkloginPreferredProviders];
|
|
|
+ } else {
|
|
|
+ self.activeLoginWeb.urlBase = self.activeUrl;
|
|
|
+ }
|
|
|
+ self.activeLoginWeb.loginType = loginType;
|
|
|
+ self.activeLoginWeb.delegate = delegate;
|
|
|
+
|
|
|
+ [viewController presentViewController:self.activeLoginWeb animated:YES completion:nil];
|
|
|
}
|
|
|
|
|
|
} 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];
|
|
|
-// });
|
|
|
+ self.activeLoginWeb = [[UIStoryboard storyboardWithName:@"CCLogin" bundle:nil] instantiateViewControllerWithIdentifier:@"NCLoginWeb"];
|
|
|
+
|
|
|
+ self.activeLoginWeb.urlBase = [[NCBrandOptions sharedInstance] loginBaseUrl];
|
|
|
+ self.activeLoginWeb.loginType = loginType;
|
|
|
+ self.activeLoginWeb.delegate = delegate;
|
|
|
+
|
|
|
+ [viewController presentViewController:self.activeLoginWeb animated:YES completion:nil];
|
|
|
|
|
|
} else {
|
|
|
|