> is in the wrong order. It needs to be
>
> (-> ....
>
> (wrap-keyword-params)
> (wrap-nested-params)
> (wrap-params))
This at least gets me a different error, which is good. But how did you
know this? Where is this documented? Why does the order matter?
On Monday, April 29, 2013 9:58:38 PM UTC-4, Nelson Morris wrote:
>
> The part of the middleware stack that looks like:
>
> (-> ....
> (wrap-params)
> (wrap-nested-params)
> (wrap-keyword-params))
>
> is in the wrong order. It needs to be
>
> (-> ....
>
> (wrap-keyword-params)
> (wrap-nested-params)
> (wrap-params))
>
> The response having
>
> :params {"" nil, "login_failed" "Y", "username" ""},
>
> indicates that they are not being changed to keywords. Since friend's
> interactive-form workflow uses keywords to pull out the params,
> it doesn't match and is constantly failing.
>
> -
> Nelson Morris
>
>
>
> On Mon, Apr 29, 2013 at 4:20 PM, Chas Emerick <[email protected]<javascript:>
> > wrote:
>
>> There's too much here for me to comb through. A couple of things:
>>
>> https://friend-demo.herokuapp.com/interactive-form is a complete demo
>> application that uses Friend's interactive-form workflow. You might have
>> seen this already; if not, it's a good starting point.
>>
>> Second, try adding a verbose logging middleware to your -> form, e.g.
>>
>> (defn wrap-verbose
>> [h]
>> (fn [req]
>> (println ">>>>" req)
>> (h req))
>>
>> (-> ...
>> wrap-verbose)
>>
>> You can move that wrap-verbose application around in your "stack" to see
>> the state of the request map at different points.
>>
>> Hope that helps,
>>
>> - Chas
>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to [email protected]<javascript:>
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.