Hi,
I read this topic several times before elsewhere on the forum but none of the 'solutions' actually work.
The problem is that our client can't edit information from customers in the Admin. Since the password is dotted and the confirm-password field is empty but both mandatory you can't change the info.
'Solutions' like keep both fields empty don't work since the fields are mandatory.
Using another browser doesn't work either.
So in short: how solve this.
Standard OC: 2.3.0.2
Kind regards,
Kec
See this post: viewtopic.php?f=190&t=203076&p=718175#p718175 . This information is correct. According to the validation form of the admin customer page, the password is only mandatory when the password and confirmation have been filled. If they are both being left empty, those fields should not appear as being mandatory.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Thank you for your respons. But no, that's not working over here.
When I empty the fields and save I get the message that the both password fields are have to be filled in.
UPDATE: You are right: there was another field on another tab that was empty! Deleting the passwords itself does work.
Thank you for refreshing my memory.
When I empty the fields and save I get the message that the both password fields are have to be filled in.
UPDATE: You are right: there was another field on another tab that was empty! Deleting the passwords itself does work.
Thank you for refreshing my memory.
There seem to have some changes in the password validation field in the latest OC release. Very well. In the admin/controller/customer/customer.php file, in the public function validateForm() method, find:
replace with:
Clear your system/cache folder (excluding index.html file). This should resolved the issue.
Code: Select all
if ($this->request->post['password'] || (!isset($this->request->get['customer_id']))) {
if ((utf8_strlen($this->request->post['password']) < 4) || (utf8_strlen($this->request->post['password']) > 20)) {
$this->error['password'] = $this->language->get('error_password');
}
if ($this->request->post['password'] != $this->request->post['confirm']) {
$this->error['confirm'] = $this->language->get('error_confirm');
}
}
Code: Select all
if ($this->request->post['password'] || (!isset($this->request->get['customer_id']))) {
if ((utf8_strlen(html_entity_decode($this->request->post['password'], ENT_QUOTES, 'UTF-8')) < 4) || (utf8_strlen(html_entity_decode($this->request->post['password'], ENT_QUOTES, 'UTF-8')) > 40)) {
$this->error['password'] = $this->language->get('error_password');
}
if ($this->request->post['password'] != $this->request->post['confirm']) {
$this->error['confirm'] = $this->language->get('error_confirm');
}
}
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 107 guests