mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 12:24:35 -04:00
Clean up
This commit is contained in:
parent
1186eaa823
commit
307e32e54d
@ -110,20 +110,13 @@ class ContactForgotPasswordController extends Controller
|
|||||||
/* Update all instances of the client */
|
/* Update all instances of the client */
|
||||||
$token = Str::random(60);
|
$token = Str::random(60);
|
||||||
ClientContact::where('email', $contact->email)->update(['token' => $token]);
|
ClientContact::where('email', $contact->email)->update(['token' => $token]);
|
||||||
|
|
||||||
$contact->sendPasswordResetNotification($token);
|
$contact->sendPasswordResetNotification($token);
|
||||||
$response = Password::RESET_LINK_SENT;
|
$response = Password::RESET_LINK_SENT;
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return $this->sendResetLinkFailedResponse($request, Password::INVALID_USER);
|
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 ($request->ajax()) {
|
||||||
|
|
||||||
if($response == Password::RESET_THROTTLED)
|
if($response == Password::RESET_THROTTLED)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user