mirror of
https://github.com/twofas/2fas-server.git
synced 2024-11-24 19:30:51 +01:00
mobile device "not blank" name validation during updates
This commit is contained in:
parent
35116e236f
commit
1644fc369b
@ -7,7 +7,7 @@ import (
|
||||
|
||||
type UpdateMobileDevice struct {
|
||||
Id string `uri:"device_id" validate:"required,uuid4"`
|
||||
Name string `json:"name" validate:"max=128"`
|
||||
Name string `json:"name" validate:"not_blank,max=128"`
|
||||
Platform string `json:"platform" validate:"omitempty,oneof=ios android huawei"`
|
||||
FcmToken string `json:"fcm_token" validate:"max=256"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user