From 05cf7c53a69b7c999ac68c2869db924e2dccc3a0 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 28 Jun 2012 14:42:29 +0200 Subject: Display loginas information only after login Message 'Logged in as: user@FREEIPA.ORG' was displayed before user was logged in. It was wrong. Now 'Logged in as: XXX' is displayed only when user XXX is logged in. So no more user@FREEIPA.ORG :) . https://fedorahosted.org/freeipa/ticket/2882 --- install/ui/webui.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'install/ui/webui.js') diff --git a/install/ui/webui.js b/install/ui/webui.js index 0be4b1b6..66efdb2c 100644 --- a/install/ui/webui.js +++ b/install/ui/webui.js @@ -167,7 +167,7 @@ $(function() { var whoami = IPA.whoami; IPA.whoami_pkey = whoami.uid[0]; - $('#loggedinas strong').text(whoami.cn[0]); + $('#loggedinas .login').text(whoami.cn[0]); $('#loggedinas a').fragment( {'user-facet': 'details', 'user-pkey': IPA.whoami_pkey}, 2); @@ -176,6 +176,9 @@ $(function() { return false; }).text(IPA.messages.login.logout); + $('.header-loggedinas').css('visibility','visible'); + IPA.update_password_expiration(); + IPA.nav = create_navigation(); IPA.nav.create(); IPA.nav.update(); -- cgit