| @@ 67-74 (lines=8) @@ | ||
| 64 | $this->P->cb_customcontenttemplate = 'customer/forgotpassword'; |
|
| 65 | ||
| 66 | $aErr = []; |
|
| 67 | if (filter_input(INPUT_POST, 'doSend') === 'yes') { |
|
| 68 | $aErr = $this->handleForgotPassword($aErr); |
|
| 69 | if (count($aErr) === 0) { |
|
| 70 | $this->P->cb_customdata['forgotpw']['showsuccessmessage'] = true; |
|
| 71 | } else { |
|
| 72 | $this->P->cb_customdata['forgotpw']['errors'] = $aErr; |
|
| 73 | } |
|
| 74 | } |
|
| 75 | } |
|
| 76 | } |
|
| 77 | ||
| @@ 86-93 (lines=8) @@ | ||
| 83 | } else { |
|
| 84 | $this->P->cb_customcontenttemplate = 'customer/resetpassword'; |
|
| 85 | $this->P->cb_customdata['pwreset']['minpwlength'] = HelperConfig::$customer['minimum_length_password']; |
|
| 86 | if (filter_input(INPUT_POST, 'doSend') === 'yes') { |
|
| 87 | $aErr = $this->handlePasswordReset($aErr, $aResult['cust_id']); |
|
| 88 | if (count($aErr) === 0) { |
|
| 89 | $this->P->cb_customdata['pwreset']['showsuccessmessage'] = true; |
|
| 90 | } else { |
|
| 91 | $this->P->cb_customdata['pwreset']['errors'] = $aErr; |
|
| 92 | } |
|
| 93 | } |
|
| 94 | } |
|
| 95 | } |
|
| 96 | } |
|