Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API edit user ProhibitLogin #100

Open
miqmago opened this issue Mar 25, 2019 · 0 comments
Open

API edit user ProhibitLogin #100

miqmago opened this issue Mar 25, 2019 · 0 comments

Comments

@miqmago
Copy link

miqmago commented Mar 25, 2019

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"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants