fixed logout
This commit is contained in:
		
							parent
							
								
									b2759252e3
								
							
						
					
					
						commit
						e29085b8c2
					
				| @ -138,7 +138,7 @@ app.controller('loginCtrl', [ | |||||||
|   vm.signOut = function () { |   vm.signOut = function () { | ||||||
|     // TODO the sign-out url for each account should be fixed.
 |     // TODO the sign-out url for each account should be fixed.
 | ||||||
|     return Auth.signOut().then(function () { |     return Auth.signOut().then(function () { | ||||||
|       if (!Auth.hasSession()) { |       if (Auth.sessions.length === 0) { | ||||||
|         $location.path('/splash-page'); |         $location.path('/splash-page'); | ||||||
|         return; |         return; | ||||||
|       } |       } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user