-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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] Delete Yourself #19439
Comments
I would propose and add some "save" mechansim like a option in body to say YES ... ? |
What's the point of a save mechanism? The API then will need two requests from those who utilize it. Most use-cases for this API call, will just make the two requests unconditionally, which, if you ask me, is a waste of resources. |
also an opinion ... |
I agree with @Gusted, a raw API has no need for a confirmation. That is a front-end job. |
ok so let it be one request to let them delete all ;) |
In fact, wouldn't it be better to have the API mark the user "to be deleted" and delete after X weeks ? This would make revert easier, in case someone account is compromised. |
good idea, will require extra work for ALL delete and GET fuctions from models, so i thin it's a own issue (and worth it's own pull) |
This would also delete the admin user or should that be not allowed? |
This comment was marked as outdated.
This comment was marked as outdated.
alternative frontends |
For which case? Why? Is there anybody would delete their GitHub account by API? |
sorry I still dont understand why you are so frighten about such an api ? |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry that I misunderstood some details, I see the latest |
After reading the code In the Imagine that some users deploy private Gitea instance with ReverseProxy auth mode, does it mean that with this PR, other users can use the token to purge their account? When many options come together, the problem becomes more complex (back to my first feeling, could the existing web page for "Delete Acount" be enough for daily usage?) |
the user should have an api to delete his own account
you just have to look at
gitea/routers/api/v1/admin/user.go
Lines 307 to 320 in a7f0ce6
The text was updated successfully, but these errors were encountered: