From a0d06944200688a852c6f70034e5d80eefc72734 Mon Sep 17 00:00:00 2001 From: Christoph Reiter <reiter.christoph@gmail.com> Date: Thu, 2 Jan 2020 15:58:30 +0100 Subject: [PATCH] Pass the current language to the keycloak login page --- packages/auth/src/vpu-auth.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/auth/src/vpu-auth.js b/packages/auth/src/vpu-auth.js index 183bba9f..feb51dd8 100644 --- a/packages/auth/src/vpu-auth.js +++ b/packages/auth/src/vpu-auth.js @@ -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(); } -- GitLab