From 0e9f3025fbe69c8613435e59d028cf6ce9b0e9e4 Mon Sep 17 00:00:00 2001 From: Andrew Koroluk Date: Tue, 15 Dec 2015 16:47:58 -0500 Subject: [PATCH] fix(client:auth.decorator): fix Auth.isLoggedIn not having a noop argument --- app/templates/client/components/auth(auth)/router.decorator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/client/components/auth(auth)/router.decorator.js b/app/templates/client/components/auth(auth)/router.decorator.js index c5bf827f3..500db2741 100644 --- a/app/templates/client/components/auth(auth)/router.decorator.js +++ b/app/templates/client/components/auth(auth)/router.decorator.js @@ -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');<% } %> });