We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b8f0ab0 + c90d762 commit f6f912fCopy full SHA for f6f912f
app/templates/client/app/app(js).js
@@ -48,8 +48,9 @@ angular.module('<%= scriptAppName %>', [<%= angularModules %>])
48
$rootScope.$on(<% if(filters.ngroute) { %>'$routeChangeStart'<% } %><% if(filters.uirouter) { %>'$stateChangeStart'<% } %>, function (event, next) {
49
Auth.isLoggedInAsync(function(loggedIn) {
50
if (next.authenticate && !loggedIn) {
51
+ event.preventDefault();
52
$location.path('/login');
53
}
54
});
55
- })<% } %>;
56
+ })<% } %>;
0 commit comments