mirror of https://github.com/cloudreve/Cloudreve
fix: allow empty password for ShareCreateService (#2498)
parent
9d28fde00c
commit
41eb010698
|
@ -20,7 +20,7 @@ type (
|
|||
ShareCreateService struct {
|
||||
Uri string `json:"uri" binding:"required"`
|
||||
IsPrivate bool `json:"is_private"`
|
||||
Password string `json:"password" binding:"max=32,alphanum,omitempty"`
|
||||
Password string `json:"password" binding:"omitempty,max=32,alphanum"`
|
||||
RemainDownloads int `json:"downloads"`
|
||||
Expire int `json:"expire"`
|
||||
ShareView bool `json:"share_view"`
|
||||
|
|
Loading…
Reference in New Issue