mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-24 14:02:09 +02:00
Change GroupStore request validation
This commit is contained in:
parent
cb605cabbd
commit
9646afd2cc
@ -28,7 +28,7 @@ class GroupStoreRequest extends FormRequest
|
||||
return [
|
||||
'name' => [
|
||||
'required',
|
||||
'alpha_dash',
|
||||
'regex:/^[a-zA-Z0-9\s\-_]+$/',
|
||||
'max:32',
|
||||
Rule::unique('groups')->where(fn ($query) => $query->where('user_id', $this->user()->id)),
|
||||
],
|
||||
|
@ -105,9 +105,6 @@ class GroupStoreRequestTest extends FeatureTestCase
|
||||
[[
|
||||
'name' => true, // string
|
||||
]],
|
||||
[[
|
||||
'name' => 8, // string
|
||||
]],
|
||||
[[
|
||||
'name' => 'mmmmmmoooooorrrrrreeeeeeettttttthhhhhhaaaaaaannnnnn32cccccchhhhhaaaaaarrrrrrsssssss', // max:32
|
||||
]],
|
||||
|
Loading…
x
Reference in New Issue
Block a user