mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
- start with register page
- on logout force to go to login page
This commit is contained in:
parent
156d54e3e7
commit
81e42d6f58
@ -22,5 +22,5 @@ export default async ({ store, env, route, redirect }) => {
|
|||||||
params.path = route.path
|
params.path = route.path
|
||||||
}
|
}
|
||||||
|
|
||||||
return redirect('/login', params)
|
return redirect('/registration/signup', params)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,7 +18,7 @@ export default {
|
|||||||
layout: 'blank',
|
layout: 'blank',
|
||||||
async beforeCreate() {
|
async beforeCreate() {
|
||||||
await this.$store.dispatch('auth/logout')
|
await this.$store.dispatch('auth/logout')
|
||||||
this.$router.replace('/')
|
this.$router.replace('/login')
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user