summaryrefslogtreecommitdiff
path: root/src/views/Login
diff options
context:
space:
mode:
authorYoshie Muranaka <yoshiemuranaka@gmail.com>2020-09-22 00:35:58 +0300
committerDerick Montague <derick.montague@ibm.com>2020-10-23 17:15:50 +0300
commitd624dae9d6727a09f6eb33b95c19986826359d6c (patch)
treec2e036e30e059595d922138d63738cf876f163c5 /src/views/Login
parentef8c3f33b580b6bba09268765326ac7900eea65a (diff)
downloadwebui-vue-d624dae9d6727a09f6eb33b95c19986826359d6c.tar.xz
Add support for mutual TLS
Adding check for 'IsAuthenticated' cookie in AuthenticationStore and adding a check in created hook for AppHeader component because it is visible on all authenticated pages. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ic558c9c45fd3f5874c8c516cb6bc005cba4946e2
Diffstat (limited to 'src/views/Login')
-rw-r--r--src/views/Login/Login.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/Login/Login.vue b/src/views/Login/Login.vue
index 4d523de6..dd0a415b 100644
--- a/src/views/Login/Login.vue
+++ b/src/views/Login/Login.vue
@@ -117,7 +117,7 @@ export default {
const username = this.userInfo.username;
const password = this.userInfo.password;
this.$store
- .dispatch('authentication/login', [username, password])
+ .dispatch('authentication/login', { username, password })
.then(() => {
localStorage.setItem('storedLanguage', i18n.locale);
localStorage.setItem('storedUsername', username);