update of user data after submission

parent e40238d6
Showing with 4 additions and 1 deletions
......@@ -24,7 +24,9 @@ var dashboardControllers = angular.module('dashboardControllers', ['dashboardCon
//
//
dashboardControllers.controller('MainCtrl', function MainCtrl(
$scope, $window, $location, $translate, $rootScope, $timeout, user) {
$scope, $window, $location, $translate, $rootScope, $timeout) {
$scope.user = $rootScope.user;
// Use browser language as default
var lang = $window.navigator.language || $window.navigator.userLanguage;
......@@ -66,6 +68,7 @@ dashboardControllers.controller('MainCtrl', function MainCtrl(
delete $window.sessionStorage.token;
delete $window.sessionStorage.user;
$scope.user = {};
// Console message
console.log("logged out!");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment