[web2py] Re: cannot disable automatic login after registration

2016-07-19 Thread Sneka R
Yes. I have no success too. Any help is appreciated. On Saturday, October 24, 2015 at 7:30:52 PM UTC-5, Pierre wrote: > > Hi everyone, > > I tried to do it with no success with this: > > auth.settings.login_after_registration = False > > thanks for your help > > -- Resources: - http://web2py.com

[web2py] Re: cannot disable automatic login after registration

2015-10-27 Thread 黄祥
thanks piere best regards, stifan On Monday, October 26, 2015 at 3:29:49 PM UTC+7, Pierre wrote: > > hi stifan, > > add this to db.py : > > auth.settings.extra_fields['auth_user']=[Field('geolat','float'), > Field('geolng','float')] > > db.auth_user._manua

[web2py] Re: cannot disable automatic login after registration

2015-10-26 Thread Pierre
hi stifan, add this to db.py : auth.settings.extra_fields['auth_user']=[Field('geolat','float'), Field('geolng','float')] db.auth_user._manual_entry = False if not db.auth_user._manual_entry: db.auth_user.geolat.readable = False db.auth_user.geol

[web2py] Re: cannot disable automatic login after registration

2015-10-25 Thread 黄祥
hi, pierre, might i know how do you get the latitude and longitude value for your form.vars? thanks and best regards, stifan On Monday, October 26, 2015 at 12:45:01 AM UTC+7, Pierre wrote: > > thanks this works : > > auth.settings.register_onvalidation(check_geo) > > + > > def check_geo(form):

[web2py] Re: cannot disable automatic login after registration

2015-10-25 Thread Pierre
thanks this works : auth.settings.register_onvalidation(check_geo) + def check_geo(form): if not form.vars.lat or not form.vars.lng: redirect(url('registration_failed')) Le dimanche 25 octobre 2015 13:34:36 UTC+1, Anthony a écrit : > > First, note that auth.settin

[web2py] Re: cannot disable automatic login after registration

2015-10-25 Thread Anthony
First, note that auth.settings.login_after_registration is for *automatically* logging in the user immediately after registration. It is False by default. However, having it set to False does not prevent the user from manually logging in after registration (unless you require verification and/o

[web2py] Re: cannot disable automatic login after registration

2015-10-25 Thread 'DenesL' via web2py-users
There are more settings to play around with and the book is not always up to date with source code changes. With that in mind I always check the source to see how it works when I am having trouble. The registration process and how it uses those settings is located in gluon/tools.py around line

[web2py] Re: cannot disable automatic login after registration

2015-10-25 Thread Pierre
Yes ok but this is not what I want : extracted from web2py book: " If you want to allow people to register and automatically log them in after registration but still want to send an email for verification so that they cannot login again after logout, unless they completed the instructions in

[web2py] Re: cannot disable automatic login after registration

2015-10-24 Thread 'DenesL' via web2py-users
You also need settings.registration_requires_verification = True On Saturday, October 24, 2015 at 8:30:52 PM UTC-4, Pierre wrote: > > Hi everyone, > > I tried to do it with no success with this: > > auth.settings.login_after_registration = False > > thanks for your help > > -- Resources: - h