Stop forcing redirect to login for anonymous user

custom app should be responsible for that i think..yes?
This commit is contained in:
Lance Edgar 2020-02-10 16:31:33 -06:00
parent f0d94cf06b
commit a1a9aafdac

View file

@ -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