mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Save language in user account settings.
This commit is contained in:
		@@ -174,8 +174,19 @@ ComunicWeb.user.userLogin = {
 | 
			
		||||
 | 
			
		||||
            //Else refresh login state to get user ID
 | 
			
		||||
            ComunicWeb.user.userLogin.refreshLoginState(function(){
 | 
			
		||||
                //And then we'll be able to perform next action
 | 
			
		||||
                afterLogin(true);
 | 
			
		||||
 | 
			
		||||
                //Then get and apply user language settings
 | 
			
		||||
                ComunicWeb.components.settings.interface.getLanguage(function(lang){
 | 
			
		||||
 | 
			
		||||
                    if(!lang.error)
 | 
			
		||||
                        ComunicWeb.common.langs.setLang(lang.lang);
 | 
			
		||||
                    
 | 
			
		||||
                    //And then we'll be able to perform next action
 | 
			
		||||
                    afterLogin(true);
 | 
			
		||||
                    
 | 
			
		||||
                });
 | 
			
		||||
 | 
			
		||||
                
 | 
			
		||||
            });
 | 
			
		||||
            
 | 
			
		||||
        };
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user