So by "auth.register() itself handles the form processing, automatic login, and redirect": Do you mean, that these functions are applied in the pre-processing (as you also mention), so I can't alter them?? Or can the:
auth.settings.login_after_registration, auth.settings.registration_requires_verification, etc. work on the auth.register()? If yes, where/how? I tried placing these settings in the def index() at one point, and in the def user() and neither seemed to have any effect. Is there an example in the manual that illustrates how this would be done? I have looked and haven't found this. Thanks much -barbra On Wednesday, June 6, 2018 at 2:28:42 PM UTC-4, Anthony wrote: > > 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.