mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-21 17:24:10 +00:00
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
|
@ -58,6 +58,8 @@ func toUser(user *models.User, signed, authed bool) *api.User {
|
|||
result.IsAdmin = user.IsAdmin
|
||||
result.LastLogin = user.LastLoginUnix.AsTime()
|
||||
result.Language = user.Language
|
||||
result.IsActive = user.IsActive
|
||||
result.ProhibitLogin = user.ProhibitLogin
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue