We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5672b35 + 0e9f302 commit 5136734Copy full SHA for 5136734
app/templates/client/components/auth(auth)/router.decorator.js
@@ -17,7 +17,7 @@ angular.module('<%= scriptAppName %>.auth')
17
}
18
19
event.preventDefault();
20
- return Auth.isLoggedIn().then(is => {<% if (filters.ngroute) { %>
+ return Auth.isLoggedIn(_.noop).then(is => {<% if (filters.ngroute) { %>
21
$location.path(is ? '/' : '/login');<% } if (filters.uirouter) { %>
22
$state.go(is ? 'main' : 'login');<% } %>
23
});
0 commit comments