Stop forcing redirect to login for anonymous user
custom app should be responsible for that i think..yes?
This commit is contained in:
parent
f0d94cf06b
commit
a1a9aafdac
|
@ -56,13 +56,6 @@ export default {
|
|||
this.$router.push('/')
|
||||
}
|
||||
|
||||
// if so configured, redirect to login if anonymous visits home page
|
||||
if (this.appsettings.forceLogin) {
|
||||
if (!response.data.user && this.$route.name == 'home') {
|
||||
this.$router.push('/login')
|
||||
}
|
||||
}
|
||||
|
||||
// set background color, to whatever api said
|
||||
if (response.data.background_color) {
|
||||
document.body.style.backgroundColor = response.data.background_color
|
||||
|
|
Loading…
Reference in a new issue