Add Active and ProhibitLogin to API (#15689)

* Added active and prohibit_login.

* Do not omit fields for normal users.
This commit is contained in:
KN4CK3R authored and GitHub committed 2021-05-11 02:22:29 +02:00
1 parent d86d123322
commit f8335444de
3 files changed
+16

No files matched your search

+2
View File
@@ -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
}