Code Duplication    Length = 6-6 lines in 2 locations

app/lib/FFCMS/Controllers/User/ForgotPassword.php 1 location

@@ 109-114 (lines=6) @@
106
                'AltBody' => \View::instance()->render('email/forgot_password.md','text/plain')
107
            ]);
108
109
            if ($mail->send()) {
110
                $this->notify(_("A password reset email has been sent."), "success");
111
            } else {
112
                $this->notify(_("There was a problem sending the email, please try again later."), "warning");
113
                $this->notify($mail->ErrorInfo, "error");
114
            }
115
116
            $f3->reroute('@index');
117
        }

app/lib/FFCMS/Controllers/User/User.php 1 location

@@ 486-491 (lines=6) @@
483
            'AltBody' => \View::instance()->render('email/forgot_password.md', 'text/plain')
484
        ]);
485
486
        if ($mail->send()) {
487
            $this->notify(_("A notification has been sent to confirm your email address."), "success");
488
        } else {
489
            $this->notify(_("There was a problem sending you a registration email, please check your email and/or try again later."), "warning");
490
            $this->notify($mail->ErrorInfo, "error");
491
        }
492
    }
493
494