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

Unable to delete an account #1267

Open
kivikakk opened this issue Apr 4, 2024 · 0 comments
Open

Unable to delete an account #1267

kivikakk opened this issue Apr 4, 2024 · 0 comments

Comments

@kivikakk
Copy link

kivikakk commented Apr 4, 2024

I'm getting a 422 Unprocessable Content upon submitting an account deletion request.

At first I thought it was because the user[i_am_sure] field is submitted twice (once with 0 for the hidden field, once with 1 for the checked box), but upon removing the hidden field it still produces that output. (And indeed, on not checking that box, the error flash is correctly displayed.)

Then I thought perhaps the authenticate call was failing, but using an incorrect password produces the correct error flash too, so I'm guessing it's just being raised by @user.delete! for some reason. I imagine the error log will contain more useful information; maybe there's some delete that's not cascading.

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

No branches or pull requests

1 participant