We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0e4c33 commit 4796982Copy full SHA for 4796982
src/views/Login.vue
@@ -4,7 +4,9 @@
4
<div class="card is-wide has-text-centered loginform">
5
<div class="card-content">
6
<p class="title">Log in to Yeti</p>
7
- <form @submit="logIn">
+
8
+ <a v-if="systemAuth === 'oidc'" href="/api/v2/auth/oidc-login">OIDC login</a>
9
+ <form v-if="systemAuth === 'local'" @submit="logIn">
10
<b-field label="Username">
11
<b-input v-model="username"></b-input>
12
</b-field>
@@ -53,6 +55,11 @@ export default {
53
55
this.loading = false;
54
56
});
57
}
58
+ },
59
+ computed: {
60
+ systemAuth() {
61
+ return this.$store.getters.appConfig?.auth.module;
62
+ }
63
64
};
65
</script>
0 commit comments