svn commit: r1090855 - in /ofbiz/trunk/framework/common: servicedef/services.xml src/org/ofbiz/common/login/LoginServices.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1090855 - in /ofbiz/trunk/framework/common: servicedef/services.xml src/org/ofbiz/common/login/LoginServices.java

buscob
Author: buscob
Date: Sun Apr 10 17:54:39 2011
New Revision: 1090855

URL: http://svn.apache.org/viewvc?rev=1090855&view=rev
Log:
Added new parameter "requirePasswordChange" to the "updateUserLoginSecurity" service.
When resetting a user password it is now possible to force the password change again.

Modified:
    ofbiz/trunk/framework/common/servicedef/services.xml
    ofbiz/trunk/framework/common/src/org/ofbiz/common/login/LoginServices.java

Modified: ofbiz/trunk/framework/common/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/servicedef/services.xml?rev=1090855&r1=1090854&r2=1090855&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/servicedef/services.xml (original)
+++ ofbiz/trunk/framework/common/servicedef/services.xml Sun Apr 10 17:54:39 2011
@@ -404,6 +404,7 @@ under the License.
         <attribute name="successiveFailedLogins" type="Long" mode="IN" optional="true"/>
         <attribute name="externalAuthId" type="String" mode="IN" optional="true"/>
         <attribute name="userLdapDn" type="String" mode="IN" optional="true"/>
+        <attribute name="requirePasswordChange" type="String" mode="IN" optional="true"/>
     </service>
 
     <!-- common permission services -->

Modified: ofbiz/trunk/framework/common/src/org/ofbiz/common/login/LoginServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/src/org/ofbiz/common/login/LoginServices.java?rev=1090855&r1=1090854&r2=1090855&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/src/org/ofbiz/common/login/LoginServices.java (original)
+++ ofbiz/trunk/framework/common/src/org/ofbiz/common/login/LoginServices.java Sun Apr 10 17:54:39 2011
@@ -879,6 +879,9 @@ public class LoginServices {
         if (context.containsKey("userLdapDn")) {
             userLoginToUpdate.set("userLdapDn", context.get("userLdapDn"), true);
         }
+        if (context.containsKey("requirePasswordChange")) {
+            userLoginToUpdate.set("requirePasswordChange", context.get("requirePasswordChange"), true);
+        }
 
         // if was disabled and we are enabling it, clear disabledDateTime
         if (!wasEnabled && "Y".equals(context.get("enabled"))) {