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
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
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
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):
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
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
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
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
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
9 matches
Mail list logo