Open Aerlinger opened 7 years ago
It's sent because devise_token_auth requires the confirm_success_url param (see https://github.com/lynndylanhurley/devise_token_auth#initializer-settings).
Maybe we could make it over-ridable in jquery.j-toker.js (it's being set at line 652 [opts.confirm_success_url = config.confirmationSuccessUrl();]), and let people set the confirm_success_url in the devise_token_auth initializer instead of whitelisting the param?
Not sure if people would find this useful though?
devise_token_auth
v0.2.0 is said to have this issue. I was able to get rid of it by reverting the version to 0.1.43
.
In Rails this will trigger an
UnpermittedParameters
exception on the backend:Here's the code to reproduce:
params sent in POST request
Exception on backend:
Obviously, it's possible to whitelist the
confirm_success_url
param, but does it need to be there in the first place?