emhoracek / smooch

Kisekae Set System implementation for the web
GNU General Public License v3.0
46 stars 25 forks source link

Redirect new users to their user page #81

Closed huggablemonad closed 2 years ago

huggablemonad commented 6 years ago

We simplify things for new users by automatically logging them in and redirecting them to their user page after account creation. This saves them the step of having to return to the home page to sign in.

This closes #69 (Log user in and redirect to user page on account creation).

I'm not too sure how the login test (in WebSpec.hs) should work now that creating a new account redirects them to their user page. should200 gives me a test error (Redirect (RespCode 303) "/users/new"), which suggests that post "/login" [("username", "new") ,("password", "pass")] is being ignored?

emhoracek commented 2 years ago

This looks great @huggablemonad! And thanks for your patience. 😅