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

Implement the new account deletion undocumented API #746

Open
teolemon opened this issue Jun 15, 2023 · 2 comments
Open

Implement the new account deletion undocumented API #746

teolemon opened this issue Jun 15, 2023 · 2 comments

Comments

@teolemon
Copy link
Member

teolemon commented Jun 15, 2023

Description

Implement the new account deletion.
Please create an ad-hoc account for this. DO NOT TRY IT WITH YOUR OWN ACCOUNT
XXXXXXXXX is the username

<form method="post" action="/cgi/user.pl" enctype="multipart/form-data" id="user_form">
<fieldset>
                <legend class="text_warning">Danger Zone</legend>
                <input type="button" name=".delete" class="button text_warning" value="Delete the user" onclick="if ('XXXXXXXXX'.localeCompare(prompt('This will delete your user details and anonymise all of your contributions. Please re-enter your user name to confirm.'),undefined,'base') === 0) {document.getElementById('delete_input').value='on';document.getElementById('user_form').submit();}">
                <input type="hidden" name="delete" id="delete_input">
            </fieldset>

Part of

@monsieurtanuki
Copy link
Contributor

@teolemon Obviously the first thing would be to check if the user is currently successfully logged in? Or is that done on the server side, somehow?

@teolemon
Copy link
Member Author

It will prevent you from accessing if you're not logged I believe.
https://world.openfoodfacts.net/cgi/user.pl?userid=XXXXX&type=edit&action=display

cc @john-gom who implemented the feature

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

No branches or pull requests

2 participants