You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ar...@apache.org on 2017/07/08 21:15:25 UTC

svn commit: r1801325 - in /ofbiz/ofbiz-plugins/trunk: ecommerce/template/ ecommerce/template/customer/ ecommerce/template/customer/profile/ ecommerce/template/survey/ hhfacility/template/ myportal/template/ webpos/template/ webpos/template/payment/

Author: arunpatidar
Date: Sat Jul  8 21:15:25 2017
New Revision: 1801325

URL: http://svn.apache.org/viewvc?rev=1801325&view=rev
Log:
Improved: Set autocomplete to off for all the password fields. (OFBIZ-9471)
Thanks Ritesh Kumar for your contribution.

Modified:
    ofbiz/ofbiz-plugins/trunk/ecommerce/template/Login.ftl
    ofbiz/ofbiz-plugins/trunk/ecommerce/template/RequirePasswordChange.ftl
    ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/ChangePassword.ftl
    ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/EditGiftCard.ftl
    ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/NewCustomer.ftl
    ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/profile/EditProfile.ftl
    ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/profile/NewCustomer.ftl
    ofbiz/ofbiz-plugins/trunk/ecommerce/template/survey/MiniSurvey.ftl
    ofbiz/ofbiz-plugins/trunk/hhfacility/template/Login.ftl
    ofbiz/ofbiz-plugins/trunk/myportal/template/Login.ftl
    ofbiz/ofbiz-plugins/trunk/myportal/template/RegisterPerson.ftl
    ofbiz/ofbiz-plugins/trunk/webpos/template/Login.ftl
    ofbiz/ofbiz-plugins/trunk/webpos/template/RequirePasswordChange.ftl
    ofbiz/ofbiz-plugins/trunk/webpos/template/payment/PayCreditCard.ftl

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/Login.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/template/Login.ftl?rev=1801325&r1=1801324&r2=1801325&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/template/Login.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/template/Login.ftl Sat Jul  8 21:15:25 2017
@@ -65,7 +65,7 @@ under the License.
               </#if>
               <div>
                 <label for="password">${uiLabelMap.CommonPassword}:</label>
-                <input type="password" id="password" name="PASSWORD" value=""/>
+                <input type="password" id="password" name="PASSWORD" autocomplete="off" value=""/>
               </div>
               <div>
                 <input type="submit" class="button" value="${uiLabelMap.CommonLogin}"/>
@@ -98,7 +98,7 @@ under the License.
         </#if>
         <div>
           <label for="password">${uiLabelMap.CommonPassword}:</label>
-          <input type="password" id="password" name="PASSWORD" value=""/>
+          <input type="password" id="password" name="PASSWORD" autocomplete="off" value=""/>
         </div>
         <div>
           <input type="submit" class="button" value="${uiLabelMap.CommonLogin}"/>

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/RequirePasswordChange.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/template/RequirePasswordChange.ftl?rev=1801325&r1=1801324&r2=1801325&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/template/RequirePasswordChange.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/template/RequirePasswordChange.ftl Sat Jul  8 21:15:25 2017
@@ -45,15 +45,15 @@ under the License.
           </#if>
           <div>
               ${uiLabelMap.CommonPassword}:&nbsp;
-              <input type="password" class="inputBox" name="PASSWORD" value="" size="20"/>
+              <input type="password" class="inputBox" name="PASSWORD" autocomplete="off" value="" size="20"/>
           </div>
           <div>
               ${uiLabelMap.CommonNewPassword}:&nbsp;
-              <input type="password" class="inputBox" name="newPassword" value="" size="20"/>
+              <input type="password" class="inputBox" name="newPassword" autocomplete="off" value="" size="20"/>
           </div>
           <div>
               ${uiLabelMap.CommonNewPasswordVerify}:&nbsp;
-              <input type="password" class="inputBox" name="newPasswordVerify" value="" size="20"/>
+              <input type="password" class="inputBox" name="newPasswordVerify" autocomplete="off" value="" size="20"/>
           </div>
           <div>
               <input type="submit" class="smallSubmit" value="${uiLabelMap.CommonLogin}"/>

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/ChangePassword.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/ChangePassword.ftl?rev=1801325&r1=1801324&r2=1801325&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/ChangePassword.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/ChangePassword.ftl Sat Jul  8 21:15:25 2017
@@ -30,15 +30,15 @@ under the License.
       <fieldset>
         <div>
           <label for="currentPassword">${uiLabelMap.PartyOldPassword}</label>
-          <input type="password" class='inputBox' name="currentPassword" id="currentPassword" maxlength="20" />*
+          <input type="password" class='inputBox' name="currentPassword" autocomplete="off" id="currentPassword" maxlength="20" />*
         </div>
         <div>
           <label for="newPassword">${uiLabelMap.PartyNewPassword}</label>
-          <input type="password" class='inputBox' name="newPassword" id="newPassword" maxlength="20" />*
+          <input type="password" class='inputBox' name="newPassword" autocomplete="off" id="newPassword" maxlength="20" />*
         </div>
         <div>
           <label for="newPasswordVerify">${uiLabelMap.PartyNewPasswordVerify}</label>
-          <input type="password" class='inputBox' name="newPasswordVerify" id="newPasswordVerify" maxlength="20" />*
+          <input type="password" class='inputBox' name="newPasswordVerify" autocomplete="off" id="newPasswordVerify" maxlength="20" />*
         </div>
         <div>
           <label for="passwordHint">${uiLabelMap.PartyPasswordHint}</label>

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/EditGiftCard.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/EditGiftCard.ftl?rev=1801325&r1=1801324&r2=1801325&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/EditGiftCard.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/EditGiftCard.ftl Sat Jul  8 21:15:25 2017
@@ -66,7 +66,7 @@ under the License.
           <td width="5">&nbsp;</td>
           <td width="74%">
             <input type="password" class="inputBox" size="10" maxlength="60" name="pinNumber"
-                value="${giftCardData.pinNumber!}"/>
+                autocomplete="off" value="${giftCardData.pinNumber!}"/>
           </td>
         </tr>
         <tr>

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/NewCustomer.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/NewCustomer.ftl?rev=1801325&r1=1801324&r2=1801325&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/NewCustomer.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/NewCustomer.ftl Sat Jul  8 21:15:25 2017
@@ -424,13 +424,13 @@ side by side in two columns, give each f
       <div>
         <label for="PASSWORD">${uiLabelMap.CommonPassword}*</label>
         <@fieldErrors fieldName="PASSWORD"/>
-        <input type="password" name="PASSWORD" id="PASSWORD" onfocus="setLastFocused(this);"/>
+        <input type="password" name="PASSWORD" autocomplete="off" id="PASSWORD" onfocus="setLastFocused(this);"/>
       </div>
 
       <div>
         <label for="CONFIRM_PASSWORD">${uiLabelMap.PartyRepeatPassword}*</label>
         <@fieldErrors fieldName="CONFIRM_PASSWORD"/>
-        <input type="password" class='inputBox' name="CONFIRM_PASSWORD" id="CONFIRM_PASSWORD" value="" maxlength="50"/>
+        <input type="password" class='inputBox' name="CONFIRM_PASSWORD" id="CONFIRM_PASSWORD" autocomplete="off" value="" maxlength="50"/>
       </div>
 
       <div>

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/profile/EditProfile.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/profile/EditProfile.ftl?rev=1801325&r1=1801324&r2=1801325&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/profile/EditProfile.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/profile/EditProfile.ftl Sat Jul  8 21:15:25 2017
@@ -65,15 +65,15 @@ under the License.
       </div>
       <div>
         <label for="currentPassword">${uiLabelMap.CommonCurrentPassword}*</label>
-        <input type="password" name="currentPassword" id="currentPassword" value="" maxlength="16" />
+        <input type="password" name="currentPassword" id="currentPassword" autocomplete="off" value="" maxlength="16" />
       </div>
       <div>
         <label for="newPassword">${uiLabelMap.CommonNewPassword}*</label>
-        <input type="password" name="newPassword" id="newPassword" value="" maxlength="16" />
+        <input type="password" name="newPassword" id="newPassword" autocomplete="off" value="" maxlength="16" />
       </div>
       <div>
         <label for="newPasswordVerify">${uiLabelMap.CommonNewPasswordVerify}*</label>
-        <input type="password" name="newPasswordVerify" id="newPasswordVerify" value="" maxlength="16" />
+        <input type="password" name="newPasswordVerify" id="newPasswordVerify" autocomplete="off" value="" maxlength="16" />
       </div>
     </fieldset>
     <div>

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/profile/NewCustomer.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/profile/NewCustomer.ftl?rev=1801325&r1=1801324&r2=1801325&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/profile/NewCustomer.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/template/customer/profile/NewCustomer.ftl Sat Jul  8 21:15:25 2017
@@ -75,7 +75,7 @@ under the License.
             </span>
           </label>
           <input type="password" name="password" id="password" class="required validate-password"
-              value="${parameters.password!}" maxlength="16"/>
+              autocomplete="off" value="${parameters.password!}" maxlength="16"/>
           <span id="advice-validate-password-password" class="errorMessage" style="display:none">
             ${uiLabelMap["loginservices.password_may_not_equal_username"]}
           </span>
@@ -87,7 +87,7 @@ under the License.
             </span>
           </label>
           <input type="password" name="passwordVerify" id="passwordVerify" class="required validate-passwordVerify"
-              value="${parameters.passwordVerify!}" maxlength="16"/>
+              autocomplete="off" value="${parameters.passwordVerify!}" maxlength="16"/>
           <span id="advice-validate-passwordVerify-passwordVerify" class="errorMessage" style="display:none">
             ${uiLabelMap["loginservices.password_did_not_match_verify_password"]}
           </span>

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/survey/MiniSurvey.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/template/survey/MiniSurvey.ftl?rev=1801325&r1=1801324&r2=1801325&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/template/survey/MiniSurvey.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/template/survey/MiniSurvey.ftl Sat Jul  8 21:15:25 2017
@@ -87,7 +87,7 @@ under the License.
           <#elseif "NUMBER_LONG" == surveyQuestionAndAppl.surveyQuestionTypeId>
             <input type="text" size="6" class="textBox" name="answers_${surveyQuestionAndAppl.surveyQuestionId}" value="${(answer.numericResponse?string("#"))!}"/>
           <#elseif "PASSWORD" == surveyQuestionAndAppl.surveyQuestionTypeId>
-            <input type="password" size="30" class="textBox" name="answers_${surveyQuestionAndAppl.surveyQuestionId}" value="${(answer.textResponse)!}"/>
+            <input type="password" size="30" class="textBox" name="answers_${surveyQuestionAndAppl.surveyQuestionId}" autocomplete="off" value="${(answer.textResponse)!}"/>
           <#elseif "OPTION" == surveyQuestionAndAppl.surveyQuestionTypeId>
             <#assign options = surveyQuestionAndAppl.getRelated("SurveyQuestionOption", null, sequenceSort, false)!>
             <#assign selectedOption = (answer.surveyOptionSeqId)?default("_NA_")>

Modified: ofbiz/ofbiz-plugins/trunk/hhfacility/template/Login.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/hhfacility/template/Login.ftl?rev=1801325&r1=1801324&r2=1801325&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/hhfacility/template/Login.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/hhfacility/template/Login.ftl Sat Jul  8 21:15:25 2017
@@ -31,7 +31,7 @@ under the License.
   </div>
   <div data-role="fieldcontainer">
     <label for="PASSWORD">${uiLabelMap.CommonPassword}</label>
-    <input type="password" id="PASSWORD" name="PASSWORD" value="" size="20" />
+    <input type="password" id="PASSWORD" name="PASSWORD" autocomplete="off" value="" size="20" />
   </div>
   <#if ("Y" == useMultitenant)>
     <div data-role="fieldcontainer">

Modified: ofbiz/ofbiz-plugins/trunk/myportal/template/Login.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/myportal/template/Login.ftl?rev=1801325&r1=1801324&r2=1801325&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/myportal/template/Login.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/myportal/template/Login.ftl Sat Jul  8 21:15:25 2017
@@ -40,7 +40,7 @@ under the License.
           </tr>
           <tr>
             <td class="label">${uiLabelMap.CommonPassword}</td>
-            <td><input type="password" name="PASSWORD" value="" size="20"/></td>
+            <td><input type="password" name="PASSWORD" autocomplete="off" value="" size="20"/></td>
           </tr>
           <#if ("Y" == useMultitenant) >
               <#if !requestAttributes.userTenantId??>

Modified: ofbiz/ofbiz-plugins/trunk/myportal/template/RegisterPerson.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/myportal/template/RegisterPerson.ftl?rev=1801325&r1=1801324&r2=1801325&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/myportal/template/RegisterPerson.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/myportal/template/RegisterPerson.ftl Sat Jul  8 21:15:25 2017
@@ -79,14 +79,14 @@ under the License.
                     <tr>
                         <td class="label">    Password    </td>
                         <td>
-                            <input type="password" id="RegisterPerson_PASSWORD" maxlength="250" size="15" name="PASSWORD" class="required false" value="${requestParameters.PASSWORD!}"/>
+                            <input type="password" id="RegisterPerson_PASSWORD" maxlength="250" size="15" name="PASSWORD" class="required false" autocomplete="off" value="${requestParameters.PASSWORD!}"/>
                             <span class="tooltip">Required</span>    
                         </td>
                     </tr>
                     <tr>
                         <td class="label">    Password    </td>
                         <td>
-                            <input type="password" id="RegisterPerson_CONFIRM_PASSWORD" maxlength="250" size="15" name="CONFIRM_PASSWORD" class="required false" value="${requestParameters.CONFIRM_PASSWORD!}"/>
+                            <input type="password" id="RegisterPerson_CONFIRM_PASSWORD" maxlength="250" size="15" name="CONFIRM_PASSWORD" class="required false" autocomplete="off" value="${requestParameters.CONFIRM_PASSWORD!}"/>
                             <span class="tooltip">* Confirm</span>    
                         </td>
                     </tr>

Modified: ofbiz/ofbiz-plugins/trunk/webpos/template/Login.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/webpos/template/Login.ftl?rev=1801325&r1=1801324&r2=1801325&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/webpos/template/Login.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/webpos/template/Login.ftl Sat Jul  8 21:15:25 2017
@@ -46,7 +46,7 @@ under the License.
           </tr>
           <tr>
             <td class="label">${uiLabelMap.CommonPassword}</td>
-            <td><input type="password" name="PASSWORD" value="" size="20"/></td>
+            <td><input type="password" name="PASSWORD" autocomplete="off" value="" size="20"/></td>
           </tr>
           <tr>
             <td class="label">${uiLabelMap.WebPosChooseTerminal}</td>

Modified: ofbiz/ofbiz-plugins/trunk/webpos/template/RequirePasswordChange.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/webpos/template/RequirePasswordChange.ftl?rev=1801325&r1=1801324&r2=1801325&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/webpos/template/RequirePasswordChange.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/webpos/template/RequirePasswordChange.ftl Sat Jul  8 21:15:25 2017
@@ -40,15 +40,15 @@ under the License.
       </#if>
       <div>
         ${uiLabelMap.CommonPassword}:&nbsp;
-        <input type="password" name="PASSWORD" value="" size="20"/>
+        <input type="password" name="PASSWORD" autocomplete="off" value="" size="20"/>
       </div>
       <div>
         ${uiLabelMap.CommonNewPassword}:&nbsp;
-        <input type="password" name="newPassword" value="" size="20"/>
+        <input type="password" name="newPassword" autocomplete="off" value="" size="20"/>
       </div>
       <div>
         ${uiLabelMap.CommonNewPasswordVerify}:&nbsp;
-        <input type="password" name="newPasswordVerify" value="" size="20"/>
+        <input type="password" name="newPasswordVerify" autocomplete="off" value="" size="20"/>
       </div>
       <div>
         <input type="submit" class="smallSubmit" value="${uiLabelMap.CommonLogin}"/>

Modified: ofbiz/ofbiz-plugins/trunk/webpos/template/payment/PayCreditCard.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/webpos/template/payment/PayCreditCard.ftl?rev=1801325&r1=1801324&r2=1801325&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/webpos/template/payment/PayCreditCard.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/webpos/template/payment/PayCreditCard.ftl Sat Jul  8 21:15:25 2017
@@ -42,7 +42,7 @@ under the License.
         ${uiLabelMap.WebPosPayCreditCardSwipeData}
       </td>
       <td width="75%" align="left" colspan="3">
-        <input type="password" id="swipeData" name="swipeData" size="50" value=""/>
+        <input type="password" id="swipeData" name="swipeData" size="50" autocomplete="off" value=""/>
       </td>
     </tr>
     <tr id="showCreditCardData1" style="display:none">