You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by as...@apache.org on 2013/12/01 07:58:40 UTC

svn commit: r1546782 - /ofbiz/trunk/framework/common/webcommon/changePassword.ftl

Author: ashish
Date: Sun Dec  1 06:58:40 2013
New Revision: 1546782

URL: http://svn.apache.org/r1546782
Log:
Bug fix. Reset password functionality doesn't work in multi-tenant environment as expected. Lets say you have created UserLogin data in any of the tenant and has set UserLogin.requirePasswordChange="Y" then when user try to login into tenant then reset password functionality doesn't work as user expects. 

Modified:
    ofbiz/trunk/framework/common/webcommon/changePassword.ftl

Modified: ofbiz/trunk/framework/common/webcommon/changePassword.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/changePassword.ftl?rev=1546782&r1=1546781&r2=1546782&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/webcommon/changePassword.ftl (original)
+++ ofbiz/trunk/framework/common/webcommon/changePassword.ftl Sun Dec  1 06:58:40 2013
@@ -18,6 +18,7 @@ under the License.
 -->
 
 <#assign username = requestParameters.USERNAME?default((sessionAttributes.autoUserLogin.userLoginId)?default(""))>
+<#assign tenantId = requestParameters.tenantId!>
 
 <center>
 <div class="screenlet login-screenlet">
@@ -28,6 +29,7 @@ under the License.
     <form method="post" action="<@o...@ofbizUrl>" name="loginform">
       <input type="hidden" name="requirePasswordChange" value="Y"/>
       <input type="hidden" name="USERNAME" value="${username}"/>
+      <input type="hidden" name="tenantId" value="${tenantId!}"/>
       <table cellspacing="0">
         <tr>
           <td class="label">${uiLabelMap.CommonUsername}</td>