Hi hamdy,
> I assume you upgraded your web2py to the latest svn version
> Now you can do :
>
> def login():
>     auth.settings.login_catpcha = Recaptcha
> (request,public_key,private_key)
>     form = auth.login()

Yes, i upgraded to the latest version 1.72.3 by clicking "click to
check for upgrades" in web2py admin. Restarted the server, I tried the
above code and also modified "login_catpcha" to "login_captcha".
Unfortunately both versions did not display the Recaptcha letters.

------------------------------------------------
>using latest svn version and removing lines :

I don't know where to find the code below. I didn't find it in
web2py_src.zip. Assuming there is a file such as this which folder
will i put it.

>'''
>           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)
Other versions did not ran too.
Thanks Hamdy

--

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