its not redirecting at all and i changed the URL to URL('default',
'user', args='profile') but still nothing is happening ,, what to
do ??!
>
> if auth.user and not auth.user.complete_registration:
> if not (request.controller,request.function) ==
> ('default','user'):
> redirect(URL('default','user/profile'))
>
Are you getting an error, or is it just not redirecting at all? In either
case, change the URL call to URL
It works but now when anyone registers with janrain his data is
messing so i used this code but its not redirecting :
auth.settings.extra_fields['auth_user']= [
Field('Country'),
Field('City'),
Field('gender',requires=IS_IN_SET(genders,zero=None)),
Field('complete_registration',default=
>
> auth.settings.login_form = ExtendedLoginForm(request,auth, other_form)
>
Looks like the book is not up-to-date -- if you're using the current
web2py, I think the above should be:
auth.settings.login_form = ExtendedLoginForm(auth, other_form)
Anthony
4 matches
Mail list logo