diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-08-23 21:51:31 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-08-26 15:19:12 +0000 |
commit | 79f5c5b2aefeb7f886a6e0f8a88d8fa8661188f7 (patch) | |
tree | 865ff8be3da650ecd3306cd0c5b6e0090f253775 /install/ui/user.js | |
parent | 586e2eaf6c02205ca6d335393bcebd8f29e345e7 (diff) | |
download | freeipa-79f5c5b2aefeb7f886a6e0f8a88d8fa8661188f7.tar.gz freeipa-79f5c5b2aefeb7f886a6e0f8a88d8fa8661188f7.tar.xz freeipa-79f5c5b2aefeb7f886a6e0f8a88d8fa8661188f7.zip |
Fixed host OTP status.
The host details page has been modified to show the status of the OTP.
Setting a new OTP is now done using a dialog box.
Ticket #1710
Diffstat (limited to 'install/ui/user.js')
-rw-r--r-- | install/ui/user.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/install/ui/user.js b/install/ui/user.js index 14d28deea..d390d1906 100644 --- a/install/ui/user.js +++ b/install/ui/user.js @@ -306,7 +306,7 @@ IPA.user_password_widget = function(spec) { $('<a/>', { href: 'jslink', title: 'userpassword', - text: IPA.messages.objects.user.reset_password, + text: IPA.messages.password.reset_password, click: function() { that.show_dialog(); return false; @@ -317,25 +317,25 @@ IPA.user_password_widget = function(spec) { that.show_dialog = function() { var dialog = IPA.dialog({ - title: IPA.messages.objects.user.reset_password, + title: IPA.messages.password.reset_password, width: 400 }); var password1 = dialog.add_field(IPA.text_widget({ name: 'password1', - label: IPA.messages.objects.user.new_password, + label: IPA.messages.password.new_password, type: 'password', undo: false })); var password2 = dialog.add_field(IPA.text_widget({ name: 'password2', - label: IPA.messages.objects.user.repeat_password, + label: IPA.messages.password.verify_password, type: 'password', undo: false })); - dialog.add_button(IPA.messages.objects.user.reset_password, function() { + dialog.add_button(IPA.messages.password.reset_password, function() { var record = {}; dialog.save(record); @@ -344,14 +344,14 @@ IPA.user_password_widget = function(spec) { var repeat_password = record.password2; if (new_password != repeat_password) { - alert(IPA.messages.objects.user.password_must_match); + alert(IPA.messages.password.password_must_match); return; } that.set_password( new_password, function(data, text_status, xhr) { - alert(IPA.messages.objects.user.password_change_complete); + alert(IPA.messages.password.password_change_complete); dialog.close(); }, function(xhr, text_status, error_thrown) { |