You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 forPATCH /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:
The text was updated successfully, but these errors were encountered: