stanfordnmbl / opencap-api

Apache License 2.0
6 stars 6 forks source link

Locales updated. Added remove account. #159

Closed AlbertoCasasOrtiz closed 5 months ago

AlbertoCasasOrtiz commented 6 months ago

DANGER! Do not test on your own account. This is what I do to test:

  1. Create a new account (I do it on admin from my main account).
  2. Give it an email and staff privileges.
  3. Log out from your CURRENT ACCOUNT, and login in admin with the NEW ACCOUNT.
  4. Go to /delete-account.
  5. Insert {"confirm":""}.
  6. Click Post. Response should say that user was removed.
  7. Reload the page. Since the account was removed it should say: "detail": "Authentication credentials were not provided.".

This way, the new account should be removed, with everything associated to it (since in models, we have ON_DELETE CASCADE.