From fef0de218e9485ea3db394f3e173b3c64a0463a8 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 22 Sep 2011 18:20:47 -0400 Subject: Add an ugly hacky-hacked reCaptcha to new user registration. --- src/views/pages/users/new.html.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/views/pages/users/new.html.php') diff --git a/src/views/pages/users/new.html.php b/src/views/pages/users/new.html.php index d9a6c75..326f0bc 100644 --- a/src/views/pages/users/new.html.php +++ b/src/views/pages/users/new.html.php @@ -30,6 +30,14 @@ if (in_array('no pw', $VARS['errors'])) { $t->inputNewPassword('auth_password','Password', $password); $t->closeFieldset(); +global $mm; $db = $mm->database(); +$public_key = $db->getPluginConf('ReCaptcha', 'public_key'); +$recaptcha_error = null; +if (isset($VARS['recaptcha_error'])) + $recaptcha_error = $VARS['recaptcha_error']; +require_once('recaptchalib.php'); +echo recaptcha_get_html($public_key, $recaptcha_error); + $t->tag('input', array('type'=>'submit', 'value'=>'Submit')); $t->closeTag('form'); -- cgit v1.2.3-54-g00ecf