Skip to content

Commit 4796982

Browse files
authored
Fix: OIDC login button (#85)
1 parent e0e4c33 commit 4796982

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/views/Login.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
<div class="card is-wide has-text-centered loginform">
55
<div class="card-content">
66
<p class="title">Log in to Yeti</p>
7-
<form @submit="logIn">
7+
8+
<a v-if="systemAuth === 'oidc'" href="/api/v2/auth/oidc-login">OIDC login</a>
9+
<form v-if="systemAuth === 'local'" @submit="logIn">
810
<b-field label="Username">
911
<b-input v-model="username"></b-input>
1012
</b-field>
@@ -53,6 +55,11 @@ export default {
5355
this.loading = false;
5456
});
5557
}
58+
},
59+
computed: {
60+
systemAuth() {
61+
return this.$store.getters.appConfig?.auth.module;
62+
}
5663
}
5764
};
5865
</script>

0 commit comments

Comments
 (0)