Edge_jr Posted October 17, 2020 Share Posted October 17, 2020 (edited) Hi, The new customers are not able to register on version 1.7.6.8. They are getting errors as Invalid email/password combination Attached screenshot. Please help and advise. Edited October 17, 2020 by edge82 (see edit history) Link to comment Share on other sites More sharing options...
Zohaib-fk Posted October 18, 2020 Share Posted October 18, 2020 This problem can be fixed by commenting condition check in file location psrootfolder/classes/form/CustomerPersister.php private function update(Customer $customer, $clearTextPassword, $newPassword, $passwordRequired = true) { /* if (!$customer->is_guest && $passwordRequired && !$this->crypto->checkHash( $clearTextPassword, $customer->passwd, _COOKIE_KEY_ )) { $msg = $this->translator->trans( 'Invalid email/password combination', [], 'Shop.Notifications.Error' ); $this->errors['email'][] = $msg; $this->errors['password'][] = $msg; return false; } */ 1 Link to comment Share on other sites More sharing options...
Edge_jr Posted October 27, 2020 Author Share Posted October 27, 2020 Thanks. Another issue with post code error (Invalid postcode - should look like "NNNNN") , which file has validation related to this issue. Attached screenshot. Link to comment Share on other sites More sharing options...
rrataj Posted October 27, 2020 Share Posted October 27, 2020 You can edit zip code format for every country separately in B.O. under International -> Locations -> Countries tab -> select country and then you see "Zip/postal code format". You can also disable this validation in /classes/Validate.php, method "isZipCodeFormat()". But better would be to override Validate class and change isZipCodeFormat() method there (https://devdocs.prestashop.com/1.7/modules/concepts/overrides/) Link to comment Share on other sites More sharing options...
Zohaib-fk Posted October 27, 2020 Share Posted October 27, 2020 This problem can be fixed by commenting condition check in file location psrootfolder/classes/form/CustomerAddressForm.php public function validate() { $is_valid = true; /* if (($postcode = $this->getField('postcode'))) { if ($postcode->isRequired()) { $country = $this->formatter->getCountry(); if (!$country->checkZipCode($postcode->getValue())) { $postcode->addError($this->translator->trans( 'Invalid postcode - should look like "%zipcode%"', array('%zipcode%' => $country->zip_code_format), 'Shop.Forms.Errors' )); $is_valid = false; } } } */ if (($hookReturn = Hook::exec('actionValidateCustomerAddressForm', array('form' => $this))) !== '') { $is_valid &= (bool) $hookReturn; } return $is_valid && parent::validate(); } Link to comment Share on other sites More sharing options...
EP Digital Posted April 28, 2021 Share Posted April 28, 2021 On 10/18/2020 at 12:14 PM, Zohaib-fk said: This problem can be fixed by commenting condition check in file location psrootfolder/classes/form/CustomerPersister.php private function update(Customer $customer, $clearTextPassword, $newPassword, $passwordRequired = true) { /* if (!$customer->is_guest && $passwordRequired && !$this->crypto->checkHash( $clearTextPassword, $customer->passwd, _COOKIE_KEY_ )) { $msg = $this->translator->trans( 'Invalid email/password combination', [], 'Shop.Notifications.Error' ); $this->errors['email'][] = $msg; $this->errors['password'][] = $msg; return false; } */ It's working for me ! You are awesome Zohaib-fk Thank you very much Link to comment Share on other sites More sharing options...
Zohaib-fk Posted April 28, 2021 Share Posted April 28, 2021 Thanks for appreciation. Happy to know problem is solved by my solution.😀 Link to comment Share on other sites More sharing options...
tank Posted August 29, 2022 Share Posted August 29, 2022 I'm also getting this problem invalid email/password combination with version 1.7.8.2, Is this problem still not fixed in 2022? or perhaps the problme is fixed in 1.7.8.7 Link to comment Share on other sites More sharing options...
pandorrah Posted December 2, 2022 Share Posted December 2, 2022 invalid email error in PS 8.0.0.0 Link to comment Share on other sites More sharing options...
Yulia Vitun Posted October 27 Share Posted October 27 the same happened to me on PS 8.2. Solution from Zohaib-fk still useful, thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now