Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit 27c1000

Browse files
authored
Merge pull request #14 from martijngastkemper/patch-1
Reject float tokens
2 parents 590aac8 + 1818e6b commit 27c1000

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Requests/VerifySMSToken.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function authorize()
2828
public function rules()
2929
{
3030
return [
31-
'token' => 'required|string|numeric',
31+
'token' => ['required', 'string', 'regex:/^\d+$/'],
3232
];
3333
}
3434
}

0 commit comments

Comments
 (0)