This commit is contained in:
David Bomba 2021-12-10 15:39:07 +11:00
parent 1186eaa823
commit 307e32e54d

View File

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