Skip to content
Snippets Groups Projects
Commit a0d06944 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Pass the current language to the keycloak login page

parent a2411def
No related branches found
No related tags found
No related merge requests found
......@@ -195,7 +195,7 @@ class VPUAuth extends VPULitElement {
const handleLogin = async () => {
if (this.forceLogin || this._kcwrapper.isLoggingIn()) {
this._setLoginStatus(LoginStatus.LOGGING_IN);
await this._kcwrapper.login();
await this._kcwrapper.login({lang: this.lang});
} else if (this.tryLogin) {
this._setLoginStatus(LoginStatus.LOGGING_IN);
await this._kcwrapper.tryLogin();
......@@ -238,7 +238,7 @@ class VPUAuth extends VPULitElement {
}
onLoginClicked(e) {
this._kcwrapper.login();
this._kcwrapper.login({lang: this.lang});
e.preventDefault();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment