wheelmap-classic icon indicating copy to clipboard operation
wheelmap-classic copied to clipboard

Delete account on staging leads to 502 error without confirmation question

Open holgerd opened this issue 8 years ago • 1 comments

  • I'm logged in as [email protected] on https://staging.wheelmap.org/en/profile/edit and click "Delete account".
  • I expect a javascript confirm question ("danger, this is irreversible" or something) and then the message that my account has been deleted or is qued for deletion.
  • Instead, I do not get a javascript confirm and after some sceonds I see a 502 error from cloudflare:

" Error 502 Ray ID: 2dfa168b7fdc2318 • 2016-09-09 10:52:29 UTC Bad gateway "

staging_wheelmap_org___502__bad_gateway

holgerd avatar Sep 09 '16 10:09 holgerd

All modern browsers have a built in confirm() function that can be easily hooked in.

Ref: https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm

Hoverbear avatar Oct 13 '16 09:10 Hoverbear