diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-01-31 13:41:28 -0600 |
---|---|---|
committer | Petr VobornÃk <pvoborni@redhat.com> | 2012-02-01 15:51:50 +0100 |
commit | b73fc6e550fed9a1b6d83a03fa16f43b361ec8aa (patch) | |
tree | b6689c9c2d1993db34ec319a7bf579afbbfb62f7 /install/ui/host.js | |
parent | 77f0e9aba5282679754029220538b12480316ca8 (diff) | |
download | freeipa.git-b73fc6e550fed9a1b6d83a03fa16f43b361ec8aa.tar.gz freeipa.git-b73fc6e550fed9a1b6d83a03fa16f43b361ec8aa.tar.xz freeipa.git-b73fc6e550fed9a1b6d83a03fa16f43b361ec8aa.zip |
Show password expiration date.
The user details page was modified to show the password expiration
date next to the existing password field.
Fixed problem resetting password in self-service mode. The JSON
interface for the passwd command requires the username to be
specified although the equivalent CLI command doesn't require it.
Ticket #2064
Diffstat (limited to 'install/ui/host.js')
-rw-r--r-- | install/ui/host.js | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/install/ui/host.js b/install/ui/host.js index 12748f67..299d147a 100644 --- a/install/ui/host.js +++ b/install/ui/host.js @@ -466,46 +466,6 @@ IPA.host_dnsrecord_entity_link_field = function(spec){ IPA.field_factories['host_dnsrecord_entity_link'] = IPA.host_dnsrecord_entity_link_field; IPA.widget_factories['host_dnsrecord_entity_link'] = IPA.link_widget; -/* Take an LDAP format date in UTC and format it */ -IPA.utc_date_column_formatter = function(spec) { - - spec = spec || {}; - - var that = IPA.formatter(spec); - - that.format = function(value) { - - if (!value) return ''; - - // verify length - if (value.length != '20101119025910Z'.length) { - return value; - } - - /* We only handle GMT */ - if (value.charAt(value.length -1) !== 'Z') { - return value; - } - - var date = new Date(); - - date.setUTCFullYear( - value.substring(0, 4), // YYYY - value.substring(4, 6)-1, // MM (0-11) - value.substring(6, 8)); // DD (1-31) - - date.setUTCHours( - value.substring(8, 10), // HH (0-23) - value.substring(10, 12), // MM (0-59) - value.substring(12, 14)); // SS (0-59) - - return date.toString(); - }; - - return that; -}; - - IPA.force_host_add_checkbox_widget = function(spec) { var metadata = IPA.get_command_option('host_add', spec.name); spec.label = metadata.label; |