diff --git a/src/modules/javascript/angularjs/mods/io.vertx~example-web-app~1.0/web/js/client_app.js b/src/modules/javascript/angularjs/mods/io.vertx~example-web-app~1.0/web/js/client_app.js index a12f4b47..190a1730 100644 --- a/src/modules/javascript/angularjs/mods/io.vertx~example-web-app~1.0/web/js/client_app.js +++ b/src/modules/javascript/angularjs/mods/io.vertx~example-web-app~1.0/web/js/client_app.js @@ -106,7 +106,7 @@ function CartController($scope, $filter) { $scope.login = function() { if ($scope.username.trim() != '' && $scope.password.trim() != '') { - eb.send('vertx.basicauthmanager.login', {username: $scope.username, password: $scope.password}, function (reply) { + eb.login($scope.username, $scope.password, function (reply) { if (reply.status === 'ok') { $scope.loggedIn = true; $scope.$apply(); @@ -116,4 +116,4 @@ function CartController($scope, $filter) { }); } }; -} \ No newline at end of file +}