mirror of
https://github.com/twofas/2fas-server.git
synced 2024-11-22 02:10:38 +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 {
|
type UpdateMobileDevice struct {
|
||||||
Id string `uri:"device_id" validate:"required,uuid4"`
|
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"`
|
Platform string `json:"platform" validate:"omitempty,oneof=ios android huawei"`
|
||||||
FcmToken string `json:"fcm_token" validate:"max=256"`
|
FcmToken string `json:"fcm_token" validate:"max=256"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user