You want to use workflows/interactive-form
where currently you specify workflows/interactive-login-redirect
.
The latter function's purpose is to serve as the default :login-failure-handler
. What it does is perform the redirect after a failed login attempt; it certainly makes no attempt to log a user in.
You also need to remove the (resp/redirect "/signup")
from the body of the friend/authenticated
form in your "/dashboard"
route, as it's unconditionally redirecting logged in users to the signup page. (That the redirect happens is in fact proof of the user being authenticated, since otherwise the body of friend/authenticated
would not be evaluated and there's nothing else in the code which could cause a redirect to "/signup"
.)
With these two changes, the app works for me.