sudoroom / sudo-humans

hackerspace membership server
Other
37 stars 19 forks source link

Redirect missing / not working when setting up payments #86

Open eadsjr opened 6 years ago

eadsjr commented 6 years ago

I signed up and set up payments, and when I clicked submit the form cleared and nothing else happened. I didn't know if it succeeded or not. When I found my way to my profile I was able to determine that the payments had been set up successfully.

I started looking through the code and tracked it to line 237 of routes/payments.js. This line should cause a redirect if there is no error, but didn't appear to succeed.

res.setHeader('location', settings.base_url + '/~'+user.name+'/edit/'+collective);

Without seeing the output on the backend or having a local working copy that is a far as I got. Currently having Docker issues, but better to report it before it is forgotten.