         service.populateAccount(startupData.User)
         service.fetched = true
       else
-        $http.get '/api/account'
+        $http.get('/api/account')
           .success (data) ->
             service.populateAccount(data)
             service.fetched = true

    forgotPassword: (data) ->
      params =
        spree_user: data
      $http.post '/api/passwords', $.param params
        .success (data) ->
          service.reload()

    resetPassword: (data) ->
      params =
        spree_user: data
      $http.put '/api/passwords/'+data.reset_password_token, $.param params
        .success (data) ->
          service.reload()

    save: (data) ->
      params =
        spree_user: data
      $http.put '/api/account', $.param params
        .success (data) ->
          service.populateAccount(data)
          Flash.success 'app.account_updated'


    reload: ->
      @fetched = false
      $http.get('/api/account')
        .success (data) ->
          service.populateAccount(data)
          service.fetched = true
