forked from forgejo/forgejo
Add Active and ProhibitLogin to API (#15689)
* Added active and prohibit_login. * Do not omit fields for normal users.
This commit is contained in:
parent
d86d123322
commit
f8335444de
3 changed files with 16 additions and 0 deletions
|
@ -33,6 +33,10 @@ type User struct {
|
|||
Created time.Time `json:"created,omitempty"`
|
||||
// Is user restricted
|
||||
Restricted bool `json:"restricted"`
|
||||
// Is user active
|
||||
IsActive bool `json:"active"`
|
||||
// Is user login prohibited
|
||||
ProhibitLogin bool `json:"prohibit_login"`
|
||||
// the user's location
|
||||
Location string `json:"location"`
|
||||
// the user's website
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue