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?
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 thatpost "/login" [("username", "new") ,("password", "pass")]
is being ignored?