From 870db2f677dff01750aeec104c90fce3ca0e54be Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 22 May 2014 16:20:02 +0200 Subject: webui: rebase user password dialog on password dialog and add otp support https://fedorahosted.org/freeipa/ticket/4262 Reviewed-By: Endi Sukma Dewata --- install/ui/src/freeipa/dialogs/password.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'install/ui/src/freeipa/dialogs') diff --git a/install/ui/src/freeipa/dialogs/password.js b/install/ui/src/freeipa/dialogs/password.js index 35f96e4b7..fa672901d 100644 --- a/install/ui/src/freeipa/dialogs/password.js +++ b/install/ui/src/freeipa/dialogs/password.js @@ -51,6 +51,7 @@ dialogs.password.default_fields_pre_op = function(spec) { spec.width = spec.width || 400; spec.sections = spec.sections || [ { + name: 'general', fields: [ { name: name, @@ -193,7 +194,7 @@ dialogs.password.dialog = function(spec) { for (var j=0; j -1) continue; if (values.length === 1) { @@ -212,10 +213,12 @@ dialogs.password.dialog = function(spec) { that.create_command = function() { var options = that.make_otions(); + var entity = null; + if (that.entity) entity = that.entity.name; var command = rpc.command({ - entity: that.entity.name, + entity: entity, method: that.method, - args: that.pkeys, + args: that.args, options: options, on_success: function(data) { that.on_success(); @@ -301,7 +304,7 @@ dialogs.password.action = function(spec) { ds.$type = 'password'; } var dialog = builder.build('dialog', ds); - dialog.pkeys = facet.get_pkeys(); + dialog.args = facet.get_pkeys(); dialog.succeeded.attach(function() { if (that.refresh) facet.refresh(); }); -- cgit