(js) Don't change user language when not changed

Fixes #4244
This commit is contained in:
Francis Lachapelle
2017-08-30 14:18:23 -04:00
parent 1ac910bdd1
commit cb2ab9152f
3 changed files with 11 additions and 2 deletions
+3 -1
View File
@@ -17,9 +17,11 @@
this.creds = {
username: $window.cookieUsername,
password: null,
language: $window.language,
rememberLogin: angular.isDefined($window.cookieUsername) && $window.cookieUsername.length > 0
};
// Send selected language only if user has changed it
if (/\blanguage=/.test($window.location.search))
this.creds.language = $window.language;
this.loginState = false;
// Show login once everything is initialized