fix username after direct login

This commit is contained in:
andrea 2017-05-30 13:23:24 +01:00
parent 03bbe30b57
commit 545686dced

View file

@ -95,6 +95,7 @@ function NavCtrl ($scope, $rootScope, $http, $routeParams, $location,
$http.post(logoutURL).error(function () {
$rootScope.userName = ''
$rootScope.ticket.principal = ''
$rootScope.ticket.screenUsername = ''
$rootScope.ticket.ticket = ''
$rootScope.ticket.roles = ''
BootstrapDialog.show({
@ -131,6 +132,7 @@ function NavCtrl ($scope, $rootScope, $http, $routeParams, $location,
})
$scope.$on('loginSuccess', function (event, param) {
$rootScope.ticket.screenUsername = $rootScope.ticket.principal
listConfigurations()
loadNotes()
getHomeNote()