Hi Timmy!

Timmy Chan wrote:
> my current workflow for FriendlyFormPlugin is
> user goes to page, needs permission, gets 401
> repoze.who sends it to login_form_url
> user inputs data
> user gets sends to post_login_url, gets 401
> gets sent to login_form_url again
 > is this a good method?  can i pass along the username somewhere?

I think that post_login_url shouldn't return 401. This view should be 
public. There you could check existence of repoze.who.identity environ 
var and do some HTTP redirect (calling webob.exc.HTTPFound method) based 
on it: calling login_form (including username on the query string) in 
case of failure or redirect to another page on success.

Good luck!

> On Sat, Apr 17, 2010 at 7:46 PM, Timmy Chan <timmy.cha...@gmail.com 
> <mailto:timmy.cha...@gmail.com>> wrote:
>     im using FriendlyFormPlugin, and i would like to retrieve the
>     username that was input as part of the request.params, but its no
>     longer there as part of the post_login_url's controller's page. this
>     way i can set the default for username  on the signin if the
>     password is incorrect. thanks

Repoze-dev mailing list

Reply via email to