authboss icon indicating copy to clipboard operation
authboss copied to clipboard

fix: email confirmation link panic in API mode

Open wythers opened this issue 5 months ago • 1 comments

When authboss is used as API server (ReadJSON=true), users clicking confirmation links from emails would cause panic and fail to confirm their account. This is because the code tries to read JSON body from GET requests used by confirmation links.

The fix ensures confirmation links work properly in API mode

wythers avatar Jul 31 '25 19:07 wythers

Surprised this didn't get found until now. Though maybe a better fix is to ignore json body in GET requests? It seems a bit silly to try to parse a body that is likely not there.

While it's true the spec doesn't forbid GET from having a body, in practice it's not even correctly supported by many clients as to be unusable.

aarondl avatar Sep 09 '25 02:09 aarondl