'use strict';

angular.module('geboRegistrantHaiApp')
  .controller('AccountCtrl', function ($scope, Token) {

    $scope.friends = [];

    /**
     * init
     */
    $scope.init = function() {
        Token.request({
                action: 'ls',
                resource: 'friends',
                fields: ['name', '_id', 'email'],
          }).
        then(function(friends) {
            $scope.friends = friends;
          }).
        catch(function(err) {
          }); 
      };
  });

'use strict';

angular.module('geboRegistrantHaiApp')
  .controller('AccountCtrl', function ($scope, Token) {

    $scope.friends = [];

    $scope.agent = Token.data();

    /**
     * init
     */
    $scope.init = function() {
        console.log('AccountCtrl init');
        Token.request({
                action: 'ls',
                resource: 'friends',
                recipient: $scope.agent.email,
                fields: ['name', '_id', 'email'],
          }).
        then(function(friends) {
            $scope.friends = friends;
          }).
        catch(function(err) {
          }); 
      };
  });

Add recipient param to ls and agent to scope
Add recipient param to ls and agent to scope
