forked from EVOgeek/Vmeda.Online
		
	Merge pull request #3408 from dpalou/MOBILE-4154
MOBILE-4154 login: Fix re-enter logged out site with IAB
This commit is contained in:
		
						commit
						65b57a5fcd
					
				@ -57,8 +57,8 @@ export class CoreCustomURLSchemesProvider {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        const currentSite = CoreSites.getCurrentSite();
 | 
					        const currentSite = CoreSites.getCurrentSite();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (!currentSite || currentSite.getToken() != data.token) {
 | 
					        if (!currentSite || currentSite.getToken() != data.token || currentSite.isLoggedOut()) {
 | 
				
			||||||
            // Token belongs to a different site, create it. It doesn't matter if it already exists.
 | 
					            // Token belongs to a different site or site is logged out, create it. It doesn't matter if it already exists.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (!data.siteUrl.match(/^https?:\/\//)) {
 | 
					            if (!data.siteUrl.match(/^https?:\/\//)) {
 | 
				
			||||||
                // URL doesn't have a protocol and it's required to be able to create the site. Check which one to use.
 | 
					                // URL doesn't have a protocol and it's required to be able to create the site. Check which one to use.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user