Skip to content

Commit

Permalink
Merge pull request #12 from yabhq/fix/forgot-password-failed-response…
Browse files Browse the repository at this point in the history
…-code

Fix forgot password failed response code
  • Loading branch information
chrisblackwell authored Nov 11, 2019
2 parents f499ef5 + b6dcd67 commit 52793b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Controllers/ForgotPasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected function sendResetLinkFailedResponse(Request $request, $response)
{
return new JsonResponse([
'success' => false,
'message' => 'An error occurred while trying to send the password reset link',
], Response::HTTP_INTERNAL_SERVER_ERROR);
'message' => 'The email address provided could not be found',
], Response::HTTP_UNPROCESSABLE_ENTITY);
}
}

0 comments on commit 52793b1

Please sign in to comment.