MOBILE-3039 core: Fix load logged out site with SSO
This commit is contained in:
		
							parent
							
								
									4f1cd6a94e
								
							
						
					
					
						commit
						838646f085
					
				| @ -938,6 +938,8 @@ export class CoreLoginHelperProvider { | ||||
| 
 | ||||
|                     promise.then(() => { | ||||
|                         this.waitingForBrowser = true; | ||||
|                         this.sitesProvider.unsetCurrentSite(); // We need to unset current site to make authentication work fine.
 | ||||
| 
 | ||||
|                         this.openBrowserForSSOLogin(result.siteUrl, result.code, result.service, | ||||
|                             result.config && result.config.launchurl, data.pageName, data.params); | ||||
|                     }).catch(() => { | ||||
|  | ||||
| @ -1181,6 +1181,13 @@ export class CoreSitesProvider { | ||||
|         }); | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * Unset current site. | ||||
|      */ | ||||
|     unsetCurrentSite(): void { | ||||
|         this.currentSite = undefined; | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * Updates a site's token. | ||||
|      * | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user