Fix password expiration notification

- was broken by navigation and application controller refactoring

https://fedorahosted.org/freeipa/ticket/4003
This commit is contained in:
Petr Vobornik committed 2013-10-30 13:31:12 +01:00
1 parent 70c1e4a185
commit e3d56597cd
5 files changed
+138 -20

No files matched your search

@@ -116,8 +116,10 @@ define([
start_runtime: function() {
this.run_time = new Deferred();
// now we are ready for displaying a facet
// cat match a facet if hash is set
IPA.update_password_expiration();
// now we are ready for displaying a facet,
// it can match a facet if hash is set
this.router.startup();
// choose default facet if not defined by route
+2 -2
View File
@@ -610,7 +610,7 @@ IPA.update_password_expiration = function() {
*/
IPA.password_selfservice = function() {
var reset_dialog = IPA.user_password_dialog({
self_service: true,
pkey: IPA.whoami.uid[0],
on_success: function() {
var command = IPA.get_whoami_command();
var orig_on_success = command.on_success;
@@ -620,7 +620,7 @@ IPA.password_selfservice = function() {
};
command.execute();
alert(text.get('@i18n:password.password_change_complete'));
IPA.notify_success(text.get('@i18n:password.password_change_complete'));
reset_dialog.close();
}
});
-1
View File
@@ -536,7 +536,6 @@ IPA.user_password_dialog = function(spec) {
that.success_handler = spec.on_success;
that.error_handler = spec.on_error;
that.self_service = spec.self_service; //option to force self-service
that.pkey = spec.pkey;
that.is_self_service = function() {