what I can't understand actually is that :

using latest svn version and removing lines :

'''
           if self.settings.login_captcha != None:
                form[0].insert(-1, TR('', self.settings.login_captcha,
''))'''
""

 from tools.py

I managed to have ed's code running :

so something like this :

if request.args(0) == 'login':
            from gluon.tools import Recaptcha
            form = auth.login()
            form[0].insert(-1, TR('',  Recaptcha(request, 'pub',
'private'))
            form[0][-1][1].append(INPUT
(_type='button',_value='Cancel',_onclick="window.location='%s';"%URL
(r=request,f='index')))
            return dict(form=form)

is working , regardless of the fact that I inserted Recaptcha field
afteter  form = auth.login()
did I get it wrong ?

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to