boyle / 2018-measure-stress

Using machine learning to investigate sympathetic activation of the autonomic nervous system (SAANS) during the treatment of mild traumatic brain injury, chronic pain, and post-traumatic stress disorder.
3 stars 1 forks source link

return 303 on register success #30

Closed boyle closed 5 years ago

boyle commented 5 years ago

Tried changing return code to 201 "created" on registration success (and redirect to login page), but then the redirect doesn't happen in the browser.

Make Francois happy by returning a nice code on success for creating new users.

boyle commented 5 years ago

The response http 201 won't work with a redirect. Best I can do is give a 303 "see other" instead of 302 "found."