From 40a282db6f7a53a8181f359a5aa2d4035caaf6f0 Mon Sep 17 00:00:00 2001 From: Bryan Rosander Date: Sat, 18 Apr 2015 01:26:12 -0400 Subject: [PATCH] using event bus login so session id is stored on bus properly --- .../mods/io.vertx~example-web-app~1.0/web/js/client_app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}