Remove some redirect magic, for logged-in users
that is now the custom app's responsibility
This commit is contained in:
		
							parent
							
								
									4501505f38
								
							
						
					
					
						commit
						5451f87f30
					
				
					 1 changed files with 0 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue