From d1fe43c56fe211db035bd6a30ac06fcfc6f61557 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Mon, 18 Jun 2012 15:46:33 +0200 Subject: Same password validator This patch adds validator which compares passwords in two fields. In future it should be used in various password reset dialogs. A flags attribute was added to field. It's purpose is to define control flags. This patch uses it in details facet and adder dialog to not include fields to command option if the field has 'no_command' flag. Therefore there is no need to use hacks such as disabling of field or removing a value from command's option map when a non-command field is needed (ie verify password). https://fedorahosted.org/freeipa/ticket/2829 --- install/ui/add.js | 1 + 1 file changed, 1 insertion(+) (limited to 'install/ui/add.js') diff --git a/install/ui/add.js b/install/ui/add.js index a9969a5c..eafcd0d5 100644 --- a/install/ui/add.js +++ b/install/ui/add.js @@ -128,6 +128,7 @@ IPA.entity_adder_dialog = function(spec) { var values = record[field.param]; if (!values || values.length === 0) continue; + if (field.flags.indexOf('no_command') > -1) continue; if (field.param === pkey_name) { command.add_arg(values[0]); -- cgit