[web2py] Re: requires_verification = False not working with custom auth table

2018-06-14 Thread Massimo Di Pierro
I think it is best to set the settings in the model where you define_tables() but your code should work. Anthony, is right, show us the full index() On Wednesday, 6 June 2018 23:40:48 UTC+2, b.l. masters wrote: > > I feel like I must be missing some basic step here. So would I put these >

[web2py] Re: requires_verification = False not working with custom auth table

2018-06-06 Thread Anthony
Please show the new version of index(). On Wednesday, June 6, 2018 at 5:40:48 PM UTC-4, b.l. masters wrote: > > I feel like I must be missing some basic step here. So would I put these > settings like this, in default.py?: > > def user(): > auth.settings.registration_requires_verification =

[web2py] Re: requires_verification = False not working with custom auth table

2018-06-06 Thread b.l. masters
I feel like I must be missing some basic step here. So would I put these settings like this, in default.py?: def user(): auth.settings.registration_requires_verification = False auth.settings.registration_requires_approval = False auth.settings.login_after_registration = True

[web2py] Re: requires_verification = False not working with custom auth table

2018-06-06 Thread b.l. masters
That is what I have done, is place them in db.py. And that is what is not working. These are what I already have in my db.py: auth.settings.remember_me_form=False auth.settings.registration_requires_verification = False auth.settings.registration_requires_approval = False

[web2py] Re: requires_verification = False not working with custom auth table

2018-06-06 Thread Anthony
On Wednesday, June 6, 2018 at 4:48:48 PM UTC-4, b.l. masters wrote: > > 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: >

[web2py] Re: requires_verification = False not working with custom auth table

2018-06-06 Thread Dave S
On Wednesday, June 6, 2018 at 1:48:48 PM UTC-7, b.l. masters wrote: > > 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:

[web2py] Re: requires_verification = False not working with custom auth table

2018-06-06 Thread b.l. masters
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,

[web2py] Re: requires_verification = False not working with custom auth table

2018-06-06 Thread Anthony
> > 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

[web2py] Re: requires_verification = False not working with custom auth table

2018-06-06 Thread b.l. masters
In terms of UI, at the [home]/index.html and the .../default/user/register are both displaying the form correctly. It includes: - username - password - confirm password - Invite Code The workflow for both should be: - load form in view - user enters info and hits return - user is automatically

[web2py] Re: requires_verification = False not working with custom auth table

2018-06-06 Thread Anthony
The Auth settings should work the same in either case. Please show your exact code (model, controller, view) and describe the exact workflow (i.e., exactly what you do and see in the UI) in both cases. Also, note that if you just want to change the visibility and/or validators of particular