Code Duplication    Length = 8-8 lines in 2 locations

src/Controller/Customer/Forgotpassword.php 1 location

@@ 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

src/Controller/Customer/Resetpassword.php 1 location

@@ 87-94 (lines=8) @@
84
                    } else {
85
                        $this->P->cb_customcontenttemplate = 'customer/resetpassword';
86
                        $this->P->cb_customdata['pwreset']['minpwlength'] = HelperConfig::$customer['minimum_length_password'];
87
                        if (filter_input(INPUT_POST, 'doSend') === 'yes') {
88
                            $aErr = $this->handlePasswordReset($aErr, $aResult['cust_id']);
89
                            if (count($aErr) === 0) {
90
                                $this->P->cb_customdata['pwreset']['showsuccessmessage'] = true;
91
                            } else {
92
                                $this->P->cb_customdata['pwreset']['errors'] = $aErr;
93
                            }
94
                        }
95
                    }
96
                }
97
            }