Customer can't edit his information without entering current passwordExisting Customer Import including MD5 hashed passwordCustomer Password Security RulesCreate Account not working, maybe related to SUPEE 6788 patchAbusing discount code by entering fake informationEdit Customer Account Information without setting address?programatically change customer password in magento 2Can I change customer email without entering password on account edit page?Magento customer account edit form remove passwordImport Customers Without PasswordHow to change “input file” storage location in customer account edit form

Dold-Kan correspondence in the category of symmetric spectra

What does 2>&1 | tee mean?

If my Scout rogue has used his full movement on his turn, can he later use the reaction from the Skirmisher feature to move again?

Can a US president have someone sent to prison?

How hard is it to sell a home which is currently mortgaged?

Is this the golf ball that Alan Shepard hit on the Moon?

Avoid bfseries from bolding pm in siunitx

MH370 blackbox - is it still possible to retrieve data from it?

A player is constantly pestering me about rules, what do I do as a DM?

What speedlites can work with the Canon EOS 4000D's non-standard hotshoe?

Signing using digital signatures?

SPI Waveform on Raspberry Pi Not clean and I'm wondering why

Anagram Within an Anagram!

Transitive action of a discrete group on a compact space

Professor Roman gives unusual math quiz ahead of

Analog is Obtuse!

Does ultrasonic bath cleaning damage laboratory volumetric glassware calibration?

“Faire” being used to mean “avoir l’air”?

What is the best delay to use between characters sent to the serial port

Does anycast addressing add additional latency in any way?

Why isn’t the tax system continuous rather than bracketed?

What is the line crossing the Pacific Ocean that is shown on maps?

Are there any vegetarian astronauts?

Compute unstable integral with high precision



Customer can't edit his information without entering current password


Existing Customer Import including MD5 hashed passwordCustomer Password Security RulesCreate Account not working, maybe related to SUPEE 6788 patchAbusing discount code by entering fake informationEdit Customer Account Information without setting address?programatically change customer password in magento 2Can I change customer email without entering password on account edit page?Magento customer account edit form remove passwordImport Customers Without PasswordHow to change “input file” storage location in customer account edit form






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I have problem in customer/account/edit/ page the customer can't update his information without fill current password field even if he doesn't checked the change password checkbox, if the customer try to change his date this message will appear "Invalid current password"



Anyone could help me please ?



The codes used



<li class="control">
<input type="checkbox" name="change_password" id="change_password" value="1" onclick="setPasswordForm(this.checked)" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Change Password')) ?>"<?php if($this->getCustomer()->getChangePassword()==1): ?> checked="checked"<?php endif; ?> class="checkbox" /><label for="change_password"><?php echo $this->__('Change Password') ?></label>
</li>
<li class="fields">
<div>
<label for="current_password" class="required"><em>*</em><?php echo $this->__('Current Password') ?></label>
<div class="input-box">
<!-- This is a dummy hidden field to trick firefox from auto filling the password -->
<input type="text" disabled class="input-text no-display" name="dummy" id="dummy" />
<input type="password" disabled title="<?php echo Mage::helper('core')->quoteEscape($this->__('Current Password')) ?>" class="input-text" name="current_password" id="current_password" />
</div>
</div>
</li>
<li class="fields">
<div>
<label for="password" class="required"><em>*</em><?php echo $this->__('New Password') ?></label>
<div class="input-box">
<input type="password" title="<?php echo Mage::helper('core')->quoteEscape($this->__('New Password')) ?>" class="input-text validate-password" name="password" id="password" />
</div>
</div>
</li>
<li class="fields">
<label for="confirmation" class="required"><em>*</em><?php echo $this->__('Confirm New Password') ?></label>
<div class="input-box">
<input type="password" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Confirm New Password')) ?>" class="input-text validate-cpassword" name="confirmation" id="confirmation" />
</div>
</li>

//<![CDATA[
var dataForm = new VarienForm('form-validate', true);
function setPasswordForm(arg)
if (arg)
$('current_password').up(4).show();
$('current_password').addClassName('required-entry');
$('password').addClassName('required-entry');
$('confirmation').addClassName('required-entry');

else
$('current_password').up(4).hide();
$('current_password').removeClassName('required-entry');
$('password').removeClassName('required-entry');
$('confirmation').removeClassName('required-entry');



<?php if($this->getCustomer()->getChangePassword()): ?>
setPasswordForm(true);
<?php endif; ?>
//]]>









share|improve this question






























    1















    I have problem in customer/account/edit/ page the customer can't update his information without fill current password field even if he doesn't checked the change password checkbox, if the customer try to change his date this message will appear "Invalid current password"



    Anyone could help me please ?



    The codes used



    <li class="control">
    <input type="checkbox" name="change_password" id="change_password" value="1" onclick="setPasswordForm(this.checked)" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Change Password')) ?>"<?php if($this->getCustomer()->getChangePassword()==1): ?> checked="checked"<?php endif; ?> class="checkbox" /><label for="change_password"><?php echo $this->__('Change Password') ?></label>
    </li>
    <li class="fields">
    <div>
    <label for="current_password" class="required"><em>*</em><?php echo $this->__('Current Password') ?></label>
    <div class="input-box">
    <!-- This is a dummy hidden field to trick firefox from auto filling the password -->
    <input type="text" disabled class="input-text no-display" name="dummy" id="dummy" />
    <input type="password" disabled title="<?php echo Mage::helper('core')->quoteEscape($this->__('Current Password')) ?>" class="input-text" name="current_password" id="current_password" />
    </div>
    </div>
    </li>
    <li class="fields">
    <div>
    <label for="password" class="required"><em>*</em><?php echo $this->__('New Password') ?></label>
    <div class="input-box">
    <input type="password" title="<?php echo Mage::helper('core')->quoteEscape($this->__('New Password')) ?>" class="input-text validate-password" name="password" id="password" />
    </div>
    </div>
    </li>
    <li class="fields">
    <label for="confirmation" class="required"><em>*</em><?php echo $this->__('Confirm New Password') ?></label>
    <div class="input-box">
    <input type="password" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Confirm New Password')) ?>" class="input-text validate-cpassword" name="confirmation" id="confirmation" />
    </div>
    </li>

    //<![CDATA[
    var dataForm = new VarienForm('form-validate', true);
    function setPasswordForm(arg)
    if (arg)
    $('current_password').up(4).show();
    $('current_password').addClassName('required-entry');
    $('password').addClassName('required-entry');
    $('confirmation').addClassName('required-entry');

    else
    $('current_password').up(4).hide();
    $('current_password').removeClassName('required-entry');
    $('password').removeClassName('required-entry');
    $('confirmation').removeClassName('required-entry');



    <?php if($this->getCustomer()->getChangePassword()): ?>
    setPasswordForm(true);
    <?php endif; ?>
    //]]>









    share|improve this question


























      1












      1








      1


      1






      I have problem in customer/account/edit/ page the customer can't update his information without fill current password field even if he doesn't checked the change password checkbox, if the customer try to change his date this message will appear "Invalid current password"



      Anyone could help me please ?



      The codes used



      <li class="control">
      <input type="checkbox" name="change_password" id="change_password" value="1" onclick="setPasswordForm(this.checked)" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Change Password')) ?>"<?php if($this->getCustomer()->getChangePassword()==1): ?> checked="checked"<?php endif; ?> class="checkbox" /><label for="change_password"><?php echo $this->__('Change Password') ?></label>
      </li>
      <li class="fields">
      <div>
      <label for="current_password" class="required"><em>*</em><?php echo $this->__('Current Password') ?></label>
      <div class="input-box">
      <!-- This is a dummy hidden field to trick firefox from auto filling the password -->
      <input type="text" disabled class="input-text no-display" name="dummy" id="dummy" />
      <input type="password" disabled title="<?php echo Mage::helper('core')->quoteEscape($this->__('Current Password')) ?>" class="input-text" name="current_password" id="current_password" />
      </div>
      </div>
      </li>
      <li class="fields">
      <div>
      <label for="password" class="required"><em>*</em><?php echo $this->__('New Password') ?></label>
      <div class="input-box">
      <input type="password" title="<?php echo Mage::helper('core')->quoteEscape($this->__('New Password')) ?>" class="input-text validate-password" name="password" id="password" />
      </div>
      </div>
      </li>
      <li class="fields">
      <label for="confirmation" class="required"><em>*</em><?php echo $this->__('Confirm New Password') ?></label>
      <div class="input-box">
      <input type="password" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Confirm New Password')) ?>" class="input-text validate-cpassword" name="confirmation" id="confirmation" />
      </div>
      </li>

      //<![CDATA[
      var dataForm = new VarienForm('form-validate', true);
      function setPasswordForm(arg)
      if (arg)
      $('current_password').up(4).show();
      $('current_password').addClassName('required-entry');
      $('password').addClassName('required-entry');
      $('confirmation').addClassName('required-entry');

      else
      $('current_password').up(4).hide();
      $('current_password').removeClassName('required-entry');
      $('password').removeClassName('required-entry');
      $('confirmation').removeClassName('required-entry');



      <?php if($this->getCustomer()->getChangePassword()): ?>
      setPasswordForm(true);
      <?php endif; ?>
      //]]>









      share|improve this question
















      I have problem in customer/account/edit/ page the customer can't update his information without fill current password field even if he doesn't checked the change password checkbox, if the customer try to change his date this message will appear "Invalid current password"



      Anyone could help me please ?



      The codes used



      <li class="control">
      <input type="checkbox" name="change_password" id="change_password" value="1" onclick="setPasswordForm(this.checked)" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Change Password')) ?>"<?php if($this->getCustomer()->getChangePassword()==1): ?> checked="checked"<?php endif; ?> class="checkbox" /><label for="change_password"><?php echo $this->__('Change Password') ?></label>
      </li>
      <li class="fields">
      <div>
      <label for="current_password" class="required"><em>*</em><?php echo $this->__('Current Password') ?></label>
      <div class="input-box">
      <!-- This is a dummy hidden field to trick firefox from auto filling the password -->
      <input type="text" disabled class="input-text no-display" name="dummy" id="dummy" />
      <input type="password" disabled title="<?php echo Mage::helper('core')->quoteEscape($this->__('Current Password')) ?>" class="input-text" name="current_password" id="current_password" />
      </div>
      </div>
      </li>
      <li class="fields">
      <div>
      <label for="password" class="required"><em>*</em><?php echo $this->__('New Password') ?></label>
      <div class="input-box">
      <input type="password" title="<?php echo Mage::helper('core')->quoteEscape($this->__('New Password')) ?>" class="input-text validate-password" name="password" id="password" />
      </div>
      </div>
      </li>
      <li class="fields">
      <label for="confirmation" class="required"><em>*</em><?php echo $this->__('Confirm New Password') ?></label>
      <div class="input-box">
      <input type="password" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Confirm New Password')) ?>" class="input-text validate-cpassword" name="confirmation" id="confirmation" />
      </div>
      </li>

      //<![CDATA[
      var dataForm = new VarienForm('form-validate', true);
      function setPasswordForm(arg)
      if (arg)
      $('current_password').up(4).show();
      $('current_password').addClassName('required-entry');
      $('password').addClassName('required-entry');
      $('confirmation').addClassName('required-entry');

      else
      $('current_password').up(4).hide();
      $('current_password').removeClassName('required-entry');
      $('password').removeClassName('required-entry');
      $('confirmation').removeClassName('required-entry');



      <?php if($this->getCustomer()->getChangePassword()): ?>
      setPasswordForm(true);
      <?php endif; ?>
      //]]>






      customer-account password magento1.9.3






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 17 at 17:07









      Mukesh

      9431 gold badge15 silver badges45 bronze badges




      9431 gold badge15 silver badges45 bronze badges










      asked Jul 16 '17 at 21:42









      MichaelCostaMichaelCosta

      206 bronze badges




      206 bronze badges




















          1 Answer
          1






          active

          oldest

          votes


















          4














          You have to change app/code/core/Mage/Customer/controllers/AccountController.php



          For this behavoir these lines have to be moved after if ($customer->getIsChangePassword()) {



          if (!$customer->validatePassword($this->getRequest()->getPost('current_password'))) 
          $errors[] = $this->__('Invalid current password');



          ... BUT you shouldn't do this!




          -1
          IMHO this validation is fine like it is. If developer's intention was to check current password just for changing password this input would be hidden until marking checkbox "change password".




          and




          IMHO to edit non-passwords account data from version 1.9.3.0 you have to provide current password too.



          Magento CE 1.9.3.0 Release Notes, section Password enhancements



          • When a user changes their e-mail address, they are required to provide their password and to acknowledge the change from the previous address.



          Had same question/problem in the past ... and have closes this pull request.






          share|improve this answer




















          • 1





            Thaaanks bro! Perfect. solved the problem. But I followed your recommendation, put the password confirmation outside of the div to maintain data security hugs.

            – MichaelCosta
            Jul 16 '17 at 22:44













          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f183978%2fcustomer-cant-edit-his-information-without-entering-current-password%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          4














          You have to change app/code/core/Mage/Customer/controllers/AccountController.php



          For this behavoir these lines have to be moved after if ($customer->getIsChangePassword()) {



          if (!$customer->validatePassword($this->getRequest()->getPost('current_password'))) 
          $errors[] = $this->__('Invalid current password');



          ... BUT you shouldn't do this!




          -1
          IMHO this validation is fine like it is. If developer's intention was to check current password just for changing password this input would be hidden until marking checkbox "change password".




          and




          IMHO to edit non-passwords account data from version 1.9.3.0 you have to provide current password too.



          Magento CE 1.9.3.0 Release Notes, section Password enhancements



          • When a user changes their e-mail address, they are required to provide their password and to acknowledge the change from the previous address.



          Had same question/problem in the past ... and have closes this pull request.






          share|improve this answer




















          • 1





            Thaaanks bro! Perfect. solved the problem. But I followed your recommendation, put the password confirmation outside of the div to maintain data security hugs.

            – MichaelCosta
            Jul 16 '17 at 22:44















          4














          You have to change app/code/core/Mage/Customer/controllers/AccountController.php



          For this behavoir these lines have to be moved after if ($customer->getIsChangePassword()) {



          if (!$customer->validatePassword($this->getRequest()->getPost('current_password'))) 
          $errors[] = $this->__('Invalid current password');



          ... BUT you shouldn't do this!




          -1
          IMHO this validation is fine like it is. If developer's intention was to check current password just for changing password this input would be hidden until marking checkbox "change password".




          and




          IMHO to edit non-passwords account data from version 1.9.3.0 you have to provide current password too.



          Magento CE 1.9.3.0 Release Notes, section Password enhancements



          • When a user changes their e-mail address, they are required to provide their password and to acknowledge the change from the previous address.



          Had same question/problem in the past ... and have closes this pull request.






          share|improve this answer




















          • 1





            Thaaanks bro! Perfect. solved the problem. But I followed your recommendation, put the password confirmation outside of the div to maintain data security hugs.

            – MichaelCosta
            Jul 16 '17 at 22:44













          4












          4








          4







          You have to change app/code/core/Mage/Customer/controllers/AccountController.php



          For this behavoir these lines have to be moved after if ($customer->getIsChangePassword()) {



          if (!$customer->validatePassword($this->getRequest()->getPost('current_password'))) 
          $errors[] = $this->__('Invalid current password');



          ... BUT you shouldn't do this!




          -1
          IMHO this validation is fine like it is. If developer's intention was to check current password just for changing password this input would be hidden until marking checkbox "change password".




          and




          IMHO to edit non-passwords account data from version 1.9.3.0 you have to provide current password too.



          Magento CE 1.9.3.0 Release Notes, section Password enhancements



          • When a user changes their e-mail address, they are required to provide their password and to acknowledge the change from the previous address.



          Had same question/problem in the past ... and have closes this pull request.






          share|improve this answer















          You have to change app/code/core/Mage/Customer/controllers/AccountController.php



          For this behavoir these lines have to be moved after if ($customer->getIsChangePassword()) {



          if (!$customer->validatePassword($this->getRequest()->getPost('current_password'))) 
          $errors[] = $this->__('Invalid current password');



          ... BUT you shouldn't do this!




          -1
          IMHO this validation is fine like it is. If developer's intention was to check current password just for changing password this input would be hidden until marking checkbox "change password".




          and




          IMHO to edit non-passwords account data from version 1.9.3.0 you have to provide current password too.



          Magento CE 1.9.3.0 Release Notes, section Password enhancements



          • When a user changes their e-mail address, they are required to provide their password and to acknowledge the change from the previous address.



          Had same question/problem in the past ... and have closes this pull request.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jul 16 '17 at 22:07

























          answered Jul 16 '17 at 21:59









          sv3nsv3n

          10.1k6 gold badges25 silver badges57 bronze badges




          10.1k6 gold badges25 silver badges57 bronze badges







          • 1





            Thaaanks bro! Perfect. solved the problem. But I followed your recommendation, put the password confirmation outside of the div to maintain data security hugs.

            – MichaelCosta
            Jul 16 '17 at 22:44












          • 1





            Thaaanks bro! Perfect. solved the problem. But I followed your recommendation, put the password confirmation outside of the div to maintain data security hugs.

            – MichaelCosta
            Jul 16 '17 at 22:44







          1




          1





          Thaaanks bro! Perfect. solved the problem. But I followed your recommendation, put the password confirmation outside of the div to maintain data security hugs.

          – MichaelCosta
          Jul 16 '17 at 22:44





          Thaaanks bro! Perfect. solved the problem. But I followed your recommendation, put the password confirmation outside of the div to maintain data security hugs.

          – MichaelCosta
          Jul 16 '17 at 22:44

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f183978%2fcustomer-cant-edit-his-information-without-entering-current-password%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form