From f5c0d673550f29e97a299d564777c7df03e20098 Mon Sep 17 00:00:00 2001 From: mtvs Date: Mon, 20 Jun 2016 20:04:12 +0430 Subject: [PATCH] fix(client:auth.decorator): redirect the user to the login page if is not logged in --- .../app/client/components/auth(auth)/router.decorator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/app/client/components/auth(auth)/router.decorator.js b/templates/app/client/components/auth(auth)/router.decorator.js index 5b8fb0e6a..752ad0720 100644 --- a/templates/app/client/components/auth(auth)/router.decorator.js +++ b/templates/app/client/components/auth(auth)/router.decorator.js @@ -29,8 +29,8 @@ angular.module('<%= scriptAppName %>.auth') } event.preventDefault();<% if (filters.ngroute) { %> - $location.path('/');<% } if (filters.uirouter) { %> - $state.go('main');<% } %> + $location.path('/login');<% } if (filters.uirouter) { %> + $state.go('login');<% } %> }); } });