diff --git a/app/Http/Controllers/Auth/ContactForgotPasswordController.php b/app/Http/Controllers/Auth/ContactForgotPasswordController.php index f88e99a43e9e..0ef1c0090abd 100644 --- a/app/Http/Controllers/Auth/ContactForgotPasswordController.php +++ b/app/Http/Controllers/Auth/ContactForgotPasswordController.php @@ -110,20 +110,13 @@ class ContactForgotPasswordController extends Controller /* Update all instances of the client */ $token = Str::random(60); ClientContact::where('email', $contact->email)->update(['token' => $token]); - $contact->sendPasswordResetNotification($token); $response = Password::RESET_LINK_SENT; + } else return $this->sendResetLinkFailedResponse($request, Password::INVALID_USER); - // We will send the password reset link to this user. Once we have attempted - // to send the link, we will examine thuser@example.ce response then see the message we - // need to show to the user. Finally, we'll send out a proper response. - // $response = $this->broker()->sendResetLink( - // $this->credentials($request) - // ); - if ($request->ajax()) { if($response == Password::RESET_THROTTLED)