mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
fix username after direct login
This commit is contained in:
parent
03bbe30b57
commit
545686dced
1 changed files with 2 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue