• reCaptcha addition (without error statements)

    From Noisome@VERT/DIGI52 to All on Wed Apr 17 14:59:19 2013
    With help from echicken I got my reCaptcha working for new users.ããIn newuser.inc I used the standard form from reCaptcha.ããIn newuser.ssjs , right above the Validate date comment/section:ãã/*Validate Captcha*/ã if(http_request.query["recaptcha_challenge_field"] != "") {ã load("http.js");ã var response;ã var http;ã varãcaptchaChallenge="&challenge="+http_request.query["recaptcha_challenge_field"];ãã varãcaptchaResponse="&response="+http_request.query["recaptcha_response_field"];ã var captchaIP="&remoteip="+http_request.remote_ip;ã var captchaPrivateKey="&privatekey=yourprivatekey";ãã // Create HTTPRequest object 'http'ã http = new HTTPRequest();ã response = http.Post(ã "http://www.google.com/recaptcha/api/verify",ã captchaChallenge+captchaResponse+captchaIP+captchaPrivateKeyã );ã //print(response);ã if(response !== "true\nsuccess" ) {ã err=1;ã template.err_message+="Bad captcha\r\n";ã template.errs["captcha"]="Captcha is incorrect.";ã } /*else {ã err=1;ã template.err_message+="Good captcha\r\n";ã template.errs["captcha"]="Captcha is correct.";ã }*/ã }ãã---ã þ Synchronet þ Digital 52 BBS - digital52.comã