Skip to content

No way to get current user 'active' state and other settings via API #13681

Closed
@WilixLead

Description

@WilixLead
  • Gitea version (or commit ref): 1.12.6 (release)
  • Git version: 2.25.1
  • Operating system: Linux 5.4.0-48-generic x86_64
  • I get Gitea binnary from releases in Github
  • Run gitea from systemd (used config from gitea docs)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No (need admin rights)
  • Log gist: --

Description

I can't find any way for admin api to get user state like 'active', 'prohibit_login' and other checkboxes in admin page.
I thing it should be under /admin/users/{username} or /users/{username} (but it require additional role checking and changing output model)

Screenshots

Metadata

Metadata

Assignees

Labels

modifies/apiThis PR adds API routes or modifies themtype/proposalThe new feature has not been accepted yet but needs to be discussed first.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions