← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5025: made update user in help not require new password (more like maint-update-user), oldPassword is s...

 

------------------------------------------------------------
revno: 5025
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2011-10-24 17:45:36 +0200
message:
  made update user in help not require new password (more like maint-update-user), oldPassword is still needed for changes
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/useraccount/updateUserAccountForm.js


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/useraccount/updateUserAccountForm.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/useraccount/updateUserAccountForm.js	2011-08-19 11:23:33 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/useraccount/updateUserAccountForm.js	2011-10-24 15:45:36 +0000
@@ -3,8 +3,10 @@
 	var rules = getValidationRules("user");
 
 	/* some customization is needed for the updateUserAccount validation rules */
-	rules["rawPassword"].required = false;
-	rules["oldPassword"] = {
+    rules["rawPassword"].required = false;
+    rules["retypePassword"].required = false;
+
+    rules["oldPassword"] = {
 			required: true
 	};