diff --git a/templates/coffeescript/services/auth.coffee b/templates/coffeescript/services/auth.coffee index 714d996c1..b8947f7ef 100644 --- a/templates/coffeescript/services/auth.coffee +++ b/templates/coffeescript/services/auth.coffee @@ -1,7 +1,7 @@ 'use strict' angular.module('<%= scriptAppName %>') - .factory 'Auth', Auth = ($location, $rootScope, Session, User, $cookieStore) -> + .factory 'Auth', ($location, $rootScope, Session, User, $cookieStore) -> # Get currentUser from cookie $rootScope.currentUser = $cookieStore.get('user') or null