Skip to content

Commit c05cbfc

Browse files
committed
skip signin
1 parent 4f65e76 commit c05cbfc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/views/Login.vue

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
<div class="error-message" v-show="showErrorMessage">
2727
<span>Incorrect username or password. Please try again.</span>
2828
</div>
29+
<div class="skip-signin">
30+
<b-button block variant="secondary" v-on:click="skipSignin()"
31+
>Skip signin and go to Homepage</b-button
32+
>
33+
</div>
2934
</form>
3035
</div>
3136
</template>
@@ -65,6 +70,10 @@ export default {
6570
if (!this.authenticated) {
6671
this.showErrorMessage = true;
6772
}
73+
},
74+
skipSignin() {
75+
this.$emit("authenticated", true);
76+
this.$router.replace({ name: "home" });
6877
}
6978
}
7079
};
@@ -83,6 +92,10 @@ export default {
8392
margin-top: 15px;
8493
font-size: 85%;
8594
}
95+
96+
.skip-signin {
97+
margin-top: 50px;
98+
}
8699
}
87100
88101
.form-signin {

0 commit comments

Comments
 (0)