summaryrefslogtreecommitdiffstats
path: root/install/ui/webui.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2012-06-28 14:42:29 +0200
committerPetr Vobornik <pvoborni@redhat.com>2012-07-10 13:30:01 +0200
commit05cf7c53a69b7c999ac68c2869db924e2dccc3a0 (patch)
treec909daa25effb1a0c6855bebd7c0e67543cb6ccb /install/ui/webui.js
parent29fd982f7f3bf4b94a8420fdfb307ed9c43c515c (diff)
downloadfreeipa-05cf7c53a69b7c999ac68c2869db924e2dccc3a0.tar.gz
freeipa-05cf7c53a69b7c999ac68c2869db924e2dccc3a0.tar.xz
freeipa-05cf7c53a69b7c999ac68c2869db924e2dccc3a0.zip
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
Diffstat (limited to 'install/ui/webui.js')
-rw-r--r--install/ui/webui.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/install/ui/webui.js b/install/ui/webui.js
index 0be4b1b63..66efdb2cf 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();