Skip to content

Commit 0e9f302

Browse files
committedDec 15, 2015
fix(client:auth.decorator): fix Auth.isLoggedIn not having a noop argument
1 parent 5672b35 commit 0e9f302

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)