summaryrefslogtreecommitdiffstats
path: root/install/ui/details.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2012-06-18 15:46:33 +0200
committerMartin Kosek <mkosek@redhat.com>2012-06-26 12:32:50 +0200
commitd1fe43c56fe211db035bd6a30ac06fcfc6f61557 (patch)
tree1086e41213769211a5487a60a1967f35e878a1eb /install/ui/details.js
parentae19cce7adcb08cc192a9a2b320a09ab10269f52 (diff)
downloadfreeipa-d1fe43c56fe211db035bd6a30ac06fcfc6f61557.tar.gz
freeipa-d1fe43c56fe211db035bd6a30ac06fcfc6f61557.tar.xz
freeipa-d1fe43c56fe211db035bd6a30ac06fcfc6f61557.zip
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
Diffstat (limited to 'install/ui/details.js')
-rw-r--r--install/ui/details.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/install/ui/details.js b/install/ui/details.js
index 48c8adb60..65de28442 100644
--- a/install/ui/details.js
+++ b/install/ui/details.js
@@ -521,6 +521,7 @@ IPA.details_facet = function(spec, no_init) {
for (var i=0; i < update_info.fields.length; i++) {
var field_info = update_info.fields[i];
+ if (field_info.field.flags.indexOf('no_command') > -1) continue;
var values = field_info.field.save();
IPA.command_builder.add_field_option(
command,