Skip to content

Commit

Permalink
skip signin
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzlikethat committed Feb 26, 2019
1 parent 4f65e76 commit c05cbfc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/views/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
<div class="error-message" v-show="showErrorMessage">
<span>Incorrect username or password. Please try again.</span>
</div>
<div class="skip-signin">
<b-button block variant="secondary" v-on:click="skipSignin()"
>Skip signin and go to Homepage</b-button
>
</div>
</form>
</div>
</template>
Expand Down Expand Up @@ -65,6 +70,10 @@ export default {
if (!this.authenticated) {
this.showErrorMessage = true;
}
},
skipSignin() {
this.$emit("authenticated", true);
this.$router.replace({ name: "home" });
}
}
};
Expand All @@ -83,6 +92,10 @@ export default {
margin-top: 15px;
font-size: 85%;
}
.skip-signin {
margin-top: 50px;
}
}
.form-signin {
Expand Down

0 comments on commit c05cbfc

Please sign in to comment.