1
0
Fork 0
forked from forgejo/forgejo

Add "restricted" option to create user admin api

This commit is contained in:
Jimmy Praet 2022-04-02 18:43:43 +02:00
parent f747cdd36f
commit a795e557c9
3 changed files with 10 additions and 0 deletions

View file

@ -19,6 +19,7 @@ type CreateUserOption struct {
Password string `json:"password" binding:"Required;MaxSize(255)"`
MustChangePassword *bool `json:"must_change_password"`
SendNotify bool `json:"send_notify"`
Restricted *bool `json:"restricted"`
Visibility string `json:"visibility" binding:"In(,public,limited,private)"`
}