Page 1 of 1

OC 1.3.2 Customer Password Change

Posted: Sat Aug 15, 2009 2:26 am
by wal_j
When a customer attempts to change their password 2 undefined index errors occur.
password and confirm.

This is due to the following file.

/catalog/controller/account/password.php
Line 70

Code: Select all

if (isset($this->request->post['password'])) {
	$this->data['password'] = $this->request->post['password'];
} else {
	$this->data['password'] = $this->request->post['password'];
}

if (isset($this->request->post['confirm'])) {
	$this->data['confirm'] = $this->request->post['confirm'];
} else {
	$this->data['confirm'] = $this->request->post['confirm'];
}
Should Read

Code: Select all

		
if (isset($this->request->post['password'])) {
     $this->data['password'] = $this->request->post['password'];
} else {
     $this->data['password'] = '';
}

if (isset($this->request->post['confirm'])) {
     $this->data['confirm'] = $this->request->post['confirm'];
} else {
     $this->data['confirm'] = '';
}
Best Wishes
Alex

Re: OC 1.3.2 Customer Password Change

Posted: Sat Aug 15, 2009 5:09 am
by eka7a
thanks

Re: OC 1.3.2 Customer Password Change

Posted: Sat Aug 15, 2009 10:41 am
by Daniel
I'll include this fix and release 1.3.2 tomorrow.