>
> def index():
>     #T.set_current_languages('zh-cn')
>     form=auth.register()
>     if form.process().accepted:
>         userID= form.vars.id
>         # assign user to group and appropriate services
>         user_group_assignment(userID)
>         # log user in and redirect to accounts main page
>         auth.login_bare(request.vars.username, request.vars.password)
>         redirect(URL('accounts', 'index'))
>

auth.register() itself handles the form processing, automatic login, and 
redirect. Also, you cannot call .process() on a form that has already been 
processed.

Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to