Skip to content

Commit 5136734

Browse files
committed
Merge pull request #1499 from angular-fullstack/fix/auth-decorator-noop-damnit
fix(client:auth.decorator): fix Auth.isLoggedIn not having a noop arg
2 parents 5672b35 + 0e9f302 commit 5136734

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ angular.module('<%= scriptAppName %>.auth')
1717
}
1818

1919
event.preventDefault();
20-
return Auth.isLoggedIn().then(is => {<% if (filters.ngroute) { %>
20+
return Auth.isLoggedIn(_.noop).then(is => {<% if (filters.ngroute) { %>
2121
$location.path(is ? '/' : '/login');<% } if (filters.uirouter) { %>
2222
$state.go(is ? 'main' : 'login');<% } %>
2323
});

0 commit comments

Comments
 (0)