mirror of
https://github.com/twofas/2fas-server.git
synced 2024-12-24 01:50:24 +01:00
validate blank browser extension name
This commit is contained in:
parent
59d25dd2e5
commit
8cdc2f3593
@ -7,7 +7,7 @@ import (
|
||||
|
||||
type RegisterBrowserExtension struct {
|
||||
BrowserExtensionId uuid.UUID
|
||||
Name string `json:"name" validate:"required,lte=64"`
|
||||
Name string `json:"name" validate:"not_blank,lte=64"`
|
||||
BrowserName string `json:"browser_name" validate:"required,lte=255"`
|
||||
BrowserVersion string `json:"browser_version" validate:"required,lte=32"`
|
||||
PublicKey string `json:"public_key" validate:"required,lte=768"`
|
||||
|
Loading…
Reference in New Issue
Block a user