identity now emits!

This commit is contained in:
Matias Alejo Garcia 2014-11-30 00:31:17 -03:00
commit 3ae6378678
33 changed files with 376 additions and 346 deletions

View file

@ -10,7 +10,12 @@ angular.module('copayApp.controllers').controller('CreateProfileController', fun
$scope.error('Error', 'Please enter the required fields');
return;
}
identityService.create($scope, form);
identityService.create(
form.email.$modelValue, form.password.$modelValue, function(err) {
if (err) $scope.error('Error', err.toString());
$rootScope.$digest();
});
}
});