Skip to content

Commit 7538bca

Browse files
mtvsAwk34
authored andcommitted
fix(client:auth.decorator): redirect the user to the login page if is not logged in (angular-fullstack#1992)
1 parent ca4e304 commit 7538bca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: templates/app/client/components/auth(auth)/router.decorator.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ angular.module('<%= scriptAppName %>.auth')
2929
}
3030

3131
event.preventDefault();<% if (filters.ngroute) { %>
32-
$location.path('/');<% } if (filters.uirouter) { %>
33-
$state.go('main');<% } %>
32+
$location.path('/login');<% } if (filters.uirouter) { %>
33+
$state.go('login');<% } %>
3434
});
3535
}
3636
});

0 commit comments

Comments
 (0)