mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +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