Skip to content

Commit

Permalink
fixup! Reject float tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
martijngastkemper committed Feb 10, 2025
1 parent da22e74 commit feb8a16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Requests/VerifySMSToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function authorize()
public function rules()
{
return [
'token' => 'required|string|integer',
'token' => ['required', 'string', 'regex:/^\d$/'],
];
}
}

0 comments on commit feb8a16

Please sign in to comment.