You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by at...@apache.org on 2013/08/19 14:00:20 UTC
git commit: AMBARI-2951 When ldap is setup and you add a ldap user
(example hdfs in dev testing) the admin page show a column for retype new
password for the ldap user. (atkach)
Updated Branches:
refs/heads/trunk 9bdfa5411 -> 18ab34207
AMBARI-2951 When ldap is setup and you add a ldap user (example hdfs in dev testing) the admin page show a column for retype new password for the ldap user. (atkach)
Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/18ab3420
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/18ab3420
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/18ab3420
Branch: refs/heads/trunk
Commit: 18ab3420722167d91e3a973a059bbd04578ef16c
Parents: 9bdfa54
Author: atkach <an...@gmail.com>
Authored: Mon Aug 19 15:00:11 2013 +0300
Committer: atkach <an...@gmail.com>
Committed: Mon Aug 19 15:00:11 2013 +0300
----------------------------------------------------------------------
ambari-web/app/views/main/admin/user/edit.js | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/18ab3420/ambari-web/app/views/main/admin/user/edit.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/admin/user/edit.js b/ambari-web/app/views/main/admin/user/edit.js
index 4d77d4d..593b549 100644
--- a/ambari-web/app/views/main/admin/user/edit.js
+++ b/ambari-web/app/views/main/admin/user/edit.js
@@ -74,12 +74,13 @@ App.MainAdminUserEditView = Em.View.extend({
didInsertElement: function() {
var form = this.get('userForm');
if (form.getField("isLdap").get("value")) {
- form.getField("old_password").set("disabled",true);
- form.getField("new_password").set("disabled",true);
- }
- else {
- form.getField("old_password").set("disabled",false);
- form.getField("new_password").set("disabled",false);
+ form.getField("old_password").set("disabled", true);
+ form.getField("new_password").set("disabled", true);
+ form.getField("new_passwordRetype").set("disabled", true);
+ } else {
+ form.getField("old_password").set("disabled", false);
+ form.getField("new_password").set("disabled", false);
+ form.getField("new_passwordRetype").set("disabled", false);
}
form.propertyDidChange('object');
}