Skip to content

Commit

Permalink
fix(app): fix dependency injection minsafe problem in auth service
Browse files Browse the repository at this point in the history
coffeescript.
  • Loading branch information
Sameer Dhar committed Jul 8, 2014
1 parent 70c6309 commit 03742a8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

angular.module('<%= scriptAppName %>').factory 'Auth', Auth = ($location, $rootScope, $http, User, $cookieStore, $q) ->
angular.module('<%= scriptAppName %>').factory 'Auth', ($location, $rootScope, $http, User, $cookieStore, $q) ->
currentUser = {}
currentUser = User.get() if $cookieStore.get('token')

Expand Down Expand Up @@ -113,4 +113,4 @@ angular.module('<%= scriptAppName %>').factory 'Auth', Auth = ($location, $rootS
Get auth token
###
getToken: ->
$cookieStore.get 'token'
$cookieStore.get 'token'

0 comments on commit 03742a8

Please sign in to comment.