Skip to content

API edit user ProhibitLogin #100

Description

@miqmago

Is your feature request related to a problem? Please describe.
Trying to block user via api. I've seen in api documentation that there is active parameter which actually blocks user, but it lets user to send himself an email in order to reactivate the user.

Describe the solution you'd like
prohibit_login api parameter for PATCH /admin/users/:username

Describe alternatives you've considered
active setting up a new random password, but this lets the user to recover the account himself.

The only viable option found is to change email account in order to prevent the user to recover the account, but this still lets the user to send emails repeatedly and I'm not sure if this is the best option.

Additional context
I'm not really strong at go, but I think that this could work:
https://github.com/gogs/go-gogs-client/blob/master/admin_user.go#L44
add:

ProhibitLogin  *int   `json:"prohibit_login"`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions