> def user():
>
> auth.settings.formstyle = 'divs'
>
> if request.args(0) == 'request_reset_password':
>     auth.request_reset_password(next = URL('default', 'index'))
>
> return dict(form=auth())
>

Your code is creating and processing the form twice. 
auth.request_reset_password(...) creates and processes the form (though you 
aren't storing that version in a variable and passing it to the view). 
Then, form=auth() once again calls auth.request_reset_password(), which 
creates and processes the form a second time. When the form is submitted, 
the first call processes the form and does the validation, but the second 
call then creates a new form. You can simply eliminate that whole "if" 
segment from your code -- form=auth() will take care of everything.

Anthony

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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.


Reply via email to