@@ 54-62 (lines=9) @@ | ||
51 | * @param string $response |
|
52 | * @return mixed |
|
53 | */ |
|
54 | protected function sendResetLinkResponse(Request $request, $response) |
|
55 | { |
|
56 | if ($request->expectsJson()) { |
|
57 | return response()->json([ |
|
58 | 'status' => trans($response) |
|
59 | ]); |
|
60 | } |
|
61 | return back()->with('status', trans($response)); |
|
62 | } |
|
63 | ||
64 | /** |
|
65 | * Get the response for a failed password reset link. |
@@ 61-70 (lines=10) @@ | ||
58 | * @param string $response |
|
59 | * @return \Illuminate\Http\RedirectResponse |
|
60 | */ |
|
61 | protected function sendResetResponse(Request $request, $response) |
|
62 | { |
|
63 | if ($request->expectsJson()) { |
|
64 | return response()->json([ |
|
65 | 'status' => trans($response) |
|
66 | ]); |
|
67 | } |
|
68 | return redirect($this->redirectPath()) |
|
69 | ->with('status', trans($response)); |
|
70 | } |
|
71 | ||
72 | /** |
|
73 | * Get the response for a failed password reset. |