Skip to content

Commit

Permalink
fix: force en language
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuseduardomedeiros committed Sep 12, 2024
1 parent 4a8e3a1 commit 6af22e5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion themes/ilhasoft/login/template.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<link href="${url.resourcesPath}/vue/unnnic.css" rel="stylesheet" />
</head>

<body class="${properties.kcBodyClass!}">
<body class="${properties.kcBodyClass!}" style="display: none;">
<div class="${properties.kcLoginClass!}" id="app">
<div class="${properties.kcFormCardClass!}">
<div class="left-side-content">
Expand Down Expand Up @@ -350,6 +350,9 @@
},
mounted() {
if(!localStorage.getItem('haveLanguagePreference')) {
this.changeLanguage('en')
}
if (this.$refs.registerPassword) {
const registerPasswordInput = this.$refs.registerPassword.$el.querySelector('input');
Expand Down Expand Up @@ -407,6 +410,7 @@
emitConnectEvent('requestlogout');
</#if>
document.body.style.display = 'flex'
},
methods: {
Expand All @@ -418,6 +422,7 @@
a.setAttribute('href', this.keycloakLanguages[keycloakLanguage]);
document.body.appendChild(a);
a.click();
localStorage.setItem('haveLanguagePreference', true)
}
});
},
Expand Down

0 comments on commit 6af22e5

Please sign in to comment.