Message 'Logged in as: u...@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 u...@freeipa.org :) .
https://fedorahosted.org/freeipa/ticket/2882
--
Petr Vobornik
From b8a90bab977d6a6d9c65d54f6cb218c14b25cdfd Mon Sep 17 00:00:00 2001
From: Petr Vobornik <pvobo...@redhat.com>
Date: Thu, 28 Jun 2012 14:42:29 +0200
Subject: [PATCH] Display loginas information only after login
Message 'Logged in as: u...@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 u...@freeipa.org :) .
https://fedorahosted.org/freeipa/ticket/2882
---
install/ui/index.html | 4 ++--
install/ui/webui.js | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/install/ui/index.html b/install/ui/index.html
index 33c0923c197d53824d79591488b18dda2ea90ad2..33f0809ce5ff920d52f26901b88eed401f6718ac 100644
--- a/install/ui/index.html
+++ b/install/ui/index.html
@@ -71,10 +71,10 @@
</span>
<span class="header-right">
<span class="header-passwordexpires"></span>
- <span id="loggedinas" class="header-loggedinas">
+ <span id="loggedinas" class="header-loggedinas" style="display:none;">
<a href="#"><span id="login_header">Logged in as</span>: <strong>u...@freeipa.org</strong></a>
</span>
- <span class="header-loggedinas">
+ <span class="header-loggedinas" style="display:none;">
| <a href="#logout" id="logout">Logout</a>
</span>
<span id="header-network-activity-indicator" class="network-activity-indicator">
diff --git a/install/ui/webui.js b/install/ui/webui.js
index 9b7c31be4c4f5edd2f3bd4bfab3559a5cb2aef4c..8371db6bfcdb9d2d5607ead0b5065aee32c7c065 100644
--- a/install/ui/webui.js
+++ b/install/ui/webui.js
@@ -176,6 +176,8 @@ $(function() {
return false;
}).text(IPA.messages.login.logout);
+ $('.header-loggedinas').show();
+
IPA.nav = create_navigation();
IPA.nav.create();
IPA.nav.update();
--
1.7.7.6
_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel