can't delete user if entry in passwordresetdata #5281
Labels
Feature: Account & User Info
Type: Bug
a defect
User Role: Sysadmin
Installs, upgrades, and configures the system, connects via ssh
Trying to delete a test username via:
curl -X DELETE -v http://localhost:8080/api/admin/authenticatedUsers/testuser
and get a 500 internal server error returned. In the logs:
which I guess is because there's a pending password reset still valid. I can't see any reason to keep the password reset info around if deleting a user, so the delete should cascade to that table.
Workaround is to delete the corresponding row from the passwordresetdata table via psql, and then the
curl
works.The text was updated successfully, but these errors were encountered: