This commit is contained in:
spencerrlongg 2024-12-18 13:57:18 -06:00
parent b71a90a3c5
commit b45cf6124f

View file

@ -50,11 +50,12 @@ class ForgotPasswordController extends Controller
*/
public function sendResetLinkEmail(Request $request)
{
dump($request);
/**
* Let's set a max character count here to prevent potential
* buffer overflow issues with attackers sending very large
* payloads through.
* payloads through. The addition of the string rule prevents attackers
* sending arrays through and causing 500s
*/
$request->validate([
'username' => ['required', 'max:255', 'string'],