Skip to content

Commit

Permalink
Merge pull request #115 from ValeriyRadchenko/patch-6
Browse files Browse the repository at this point in the history
unauthenticatedRedirector fix
  • Loading branch information
chenkie authored Oct 21, 2016
2 parents 0c7889d + 9ee0e69 commit 867ca2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/angularJwt/services/jwtOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ angular.module('angular-jwt.options', [])
},
loginPath: '/',
unauthenticatedRedirectPath: '/',
unauthenticatedRedirector: function(location) {
location.path(this.unauthenticatedRedirectPath);
}
unauthenticatedRedirector: ['$location', function($location) {
$location.path(this.unauthenticatedRedirectPath);
}]
};

function JwtOptions() {
Expand Down

0 comments on commit 867ca2e

Please sign in to comment.