Skip to content

Commit

Permalink
fix(client:auth.decorator): fix Auth.isLoggedIn not having a noop arg…
Browse files Browse the repository at this point in the history
…ument
  • Loading branch information
Awk34 committed Dec 15, 2015
1 parent 5672b35 commit 0e9f302
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ angular.module('<%= scriptAppName %>.auth')
}

event.preventDefault();
return Auth.isLoggedIn().then(is => {<% if (filters.ngroute) { %>
return Auth.isLoggedIn(_.noop).then(is => {<% if (filters.ngroute) { %>
$location.path(is ? '/' : '/login');<% } if (filters.uirouter) { %>
$state.go(is ? 'main' : 'login');<% } %>
});
Expand Down

0 comments on commit 0e9f302

Please sign in to comment.