This is an automated email from the git hooks/post-receive script. unknown user pushed a commit to branch devel in repository Pollen. commit 3fd3cc45f125a1881cff8b3e78c32f81451edfe4 Author: Adrien Garandel <a.garandel@dralagen.fr> Date: Wed May 21 12:26:10 2014 +0200 save currentUser --- pollen-ui-angular/src/main/webapp/js/controllers/userCtrl.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pollen-ui-angular/src/main/webapp/js/controllers/userCtrl.js b/pollen-ui-angular/src/main/webapp/js/controllers/userCtrl.js index c05cb4e..cbd2446 100644 --- a/pollen-ui-angular/src/main/webapp/js/controllers/userCtrl.js +++ b/pollen-ui-angular/src/main/webapp/js/controllers/userCtrl.js @@ -40,6 +40,8 @@ if (angular.isUndefined($scope.data)) { $scope.data = {user:{}}; } + $scope.currentUser = SessionStorage.get().user; + $scope.login = function () { UserLogin.login({}, $scope.data.user, function (data) { User.get({userId: data.id}, function (user) { @@ -53,6 +55,7 @@ $scope.logout = function () { UserLogout.logout(function (data) { SessionStorage.remove('token'); + SessionStorage.remove('user'); delete $scope.currentUser; }) } -- To stop receiving notification emails like this one, please contact Chorem.org SCM administrator <admin+scm@chorem.org>.