diff options
Diffstat (limited to 'src/views')
-rw-r--r-- | src/views/pages/users/new.html.php | 8 |
1 files changed, 8 insertions, 0 deletions
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'); |