json(['message' => 'Password reset email sent.', 'data' => $response]); } /** * Report that no link went out. * * Quirk kept as is: this refusal is a probing oracle. An address nobody * holds fails here while a known address succeeds, so the difference * between 403 and 200 tells a caller which staff addresses exist. The * throttle on the route is the only thing narrowing that. * * @param string $response */ protected function sendResetLinkFailedResponse(Request $request, $response) { return response()->json(['error' => self::UNDELIVERABLE], Response::HTTP_FORBIDDEN); } }