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/ipa.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'install/ui/ipa.js') diff --git a/install/ui/ipa.js b/install/ui/ipa.js index aadea8d2..2547a24d 100644 --- a/install/ui/ipa.js +++ b/install/ui/ipa.js @@ -157,7 +157,6 @@ var IPA = function() { on_success: function(data, text_status, xhr) { that.whoami = batch ? data.result[0] : data.result.result[0]; that.principal = that.whoami.krbprincipalname[0]; - that.update_password_expiration(); } }); }; @@ -516,6 +515,11 @@ IPA.password_selfservice = function() { self_service: true, on_success: function() { var command = IPA.get_whoami_command(); + var orig_on_success = command.on_success; + command.on_success = function(data, text_status, xhr) { + orig_on_success.call(this, data, text_status, xhr); + IPA.update_password_expiration(); + }; command.execute(); alert(IPA.messages.password.password_change_complete); -- cgit