After user registers, I would liketo register them to a different URL,
let's say default/index.
Auto-login in db.py is set to False.
In my default.py controller I have sth this:
register_form = auth.register(next=URL('default', 'index'))
register_form.update(_class='formstyle', _name='s_registration')
if register_form.process().accepts(request.vars,
formname='s_registration'):
auth.add_membership(group_id=1, user_id=register_form_s.vars.id)
return dict(register_form=register_form)
After user registr, no redirection takes place. However, the user registers
correclty (checked the DB).
Any suggestions why "next" argument does't get the job done?
--
---
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.