Author: yusaku
Date: Fri Jan 25 02:48:33 2013
New Revision: 1438301
URL: http://svn.apache.org/viewvc?rev=1438301&view=rev
Log:
AMBARI-1258. Minor refactoring of User Management code. (yusaku)
Modified:
incubator/ambari/trunk/CHANGES.txt
incubator/ambari/trunk/ambari-web/app/views/main/admin/user/create.js
Modified: incubator/ambari/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1438301&r1=1438300&r2=1438301&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Fri Jan 25 02:48:33 2013
@@ -25,6 +25,8 @@ Trunk (unreleased changes):
IMPROVEMENTS
+ AMBARI-1258. Minor refactoring of User Management code. (yusaku)
+
AMBARI-1253. Use ember-precompiler-brunch npm plugin. (yusaku)
AMBARI-1236. Display a progress bar during deploy prep. (yusaku)
Modified: incubator/ambari/trunk/ambari-web/app/views/main/admin/user/create.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/main/admin/user/create.js?rev=1438301&r1=1438300&r2=1438301&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/views/main/admin/user/create.js
(original)
+++ incubator/ambari/trunk/ambari-web/app/views/main/admin/user/create.js Fri
Jan 25 02:48:33 2013
@@ -32,10 +32,9 @@ App.MainAdminUserCreateView = Em.View.ex
} else{
form.getField("roles").set("value","user");
}
-
parent_controller.sendCommandToServer('/users/' +
form.getValues().userName, "POST" , {
Users: {
- password: form.getValues().password,
+ password: form.getField("password").get('value'),
roles: form.getValues().roles
}
}, function (success) {