diff --git a/app/Http/Controllers/Auth/ForgotPasswordController.php b/app/Http/Controllers/Auth/ForgotPasswordController.php index a4e35c54..8234e81d 100644 --- a/app/Http/Controllers/Auth/ForgotPasswordController.php +++ b/app/Http/Controllers/Auth/ForgotPasswordController.php @@ -52,7 +52,6 @@ protected function validateEmail(Request $request) protected function sendResetLinkResponse(Request $request, $response) { return ['status' => trans($response)]; - // return response()->json(['status' => $response], 200); } /** @@ -64,6 +63,6 @@ protected function sendResetLinkResponse(Request $request, $response) */ protected function sendResetLinkFailedResponse(Request $request, $response) { - return response()->json(['email' => trans($response)], 400); + return response()->json(['requestFailed' => trans($response)], 400); } } diff --git a/app/Http/Controllers/Auth/ResetPasswordController.php b/app/Http/Controllers/Auth/ResetPasswordController.php index 0676ce8b..64dd3d44 100644 --- a/app/Http/Controllers/Auth/ResetPasswordController.php +++ b/app/Http/Controllers/Auth/ResetPasswordController.php @@ -2,6 +2,7 @@ namespace App\Http\Controllers\Auth; +use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Illuminate\Foundation\Auth\ResetsPasswords; @@ -51,6 +52,6 @@ protected function sendResetResponse(Request $request, $response) */ protected function sendResetFailedResponse(Request $request, $response) { - return response()->json(['email' => trans($response)], 400); + return response()->json(['resetFailed' => trans($response)], 400); } } diff --git a/resources/js/views/auth/password/Request.vue b/resources/js/views/auth/password/Request.vue index 8595c485..d32603f1 100644 --- a/resources/js/views/auth/password/Request.vue +++ b/resources/js/views/auth/password/Request.vue @@ -2,7 +2,7 @@