Remove some redirect magic, for logged-in users

that is now the custom app's responsibility
This commit is contained in:
Lance Edgar 2020-02-10 17:35:45 -06:00
parent 4501505f38
commit 5451f87f30

View file

@ -50,10 +50,6 @@ export default {
// if user is anonymous, and requested logout page, send to login instead
if (!response.data.user && this.$route.name == 'logout') {
this.$router.push('/login')
// if user is logged in, and requested login page, send to home instead
} else if (response.data.user && this.$route.name == 'login') {
this.$router.push('/')
}
// set background color, to whatever api said