mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-01-23 06:38:34 +01:00
Link and route for sign out
This commit is contained in:
parent
d390dcef25
commit
d1c98bb9e9
4
resources/js/app.js
vendored
4
resources/js/app.js
vendored
@ -31,6 +31,10 @@ const router = new VueRouter({
|
||||
name: 'login',
|
||||
component: Login,
|
||||
},
|
||||
{
|
||||
path: '/logout',
|
||||
name: 'logout',
|
||||
},
|
||||
{
|
||||
path: '/register',
|
||||
name: 'register',
|
||||
|
@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<nav class="navbar is-black level is-mobile has-text-grey-lighter">
|
||||
<div class="level-left">
|
||||
<router-link :to="{ name: 'accounts' }" class="is-size-4 has-text-weight-light" v-if="isLoggedIn">2FAccount</router-link>
|
||||
<router-link :to="{ name: 'accounts' }" class="is-size-4 has-text-weight-light">2FAccount</router-link>
|
||||
</div>
|
||||
<div class="level-right">
|
||||
<p class="level-item" v-if="isLoggedIn">
|
||||
@ -14,7 +14,12 @@
|
||||
</p>
|
||||
<p class="level-item" v-if="!isLoggedIn">
|
||||
<router-link :to="{ name: 'login' }" class="button is-black">
|
||||
login
|
||||
Sign in
|
||||
</router-link>
|
||||
</p>
|
||||
<p class="level-item" v-else>
|
||||
<router-link :to="{ name: 'sign out' }" class="button is-black">
|
||||
Sign out
|
||||
</router-link>
|
||||
</p>
|
||||
<p class="level-item" v-if="!isLoggedIn">
|
||||
|
Loading…
Reference in New Issue
Block a user