You've already forked pocketbase
mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-12-01 09:16:40 +02:00
added custom insertion id regex check
This commit is contained in:
@@ -412,7 +412,13 @@ func TestAdminUpsertWithCustomId(t *testing.T) {
|
||||
true,
|
||||
},
|
||||
{
|
||||
"id = 15 chars",
|
||||
"id = 15 chars (invalid chars)",
|
||||
`{"id":"a@3456789012345"}`,
|
||||
&models.Admin{},
|
||||
true,
|
||||
},
|
||||
{
|
||||
"id = 15 chars (valid chars)",
|
||||
`{"id":"a23456789012345"}`,
|
||||
&models.Admin{},
|
||||
false,
|
||||
|
||||
Reference in New Issue
Block a user