Subversion Repositories oidplus

Rev

Rev 292 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 292 Rev 294
Line 67... Line 67...
67
        echo '<noscript>';
67
        echo '<noscript>';
68
        echo '<p><font color="red">You need to enable JavaScript to solve the CAPTCHA.</font></p>';
68
        echo '<p><font color="red">You need to enable JavaScript to solve the CAPTCHA.</font></p>';
69
        echo '</noscript>';
69
        echo '</noscript>';
70
        echo '<script> grecaptcha.render(document.getElementById("g-recaptcha"), { "sitekey" : "'.OIDplus::baseConfig()->getValue('RECAPTCHA_PUBLIC', '').'" }); </script>';
70
        echo '<script> grecaptcha.render(document.getElementById("g-recaptcha"), { "sitekey" : "'.OIDplus::baseConfig()->getValue('RECAPTCHA_PUBLIC', '').'" }); </script>';
71
        echo '<p>Before logging in, please solve the following CAPTCHA</p>';
71
        echo '<p>Before logging in, please solve the following CAPTCHA</p>';
72
        echo '<p>If the CAPTCHA does not work (e.g. because of wrong keys, please run <a href="<?php echo OIDplus::getSystemUrl(); ?>setup/">setup part 1</a> again or edit includes/config.inc.php).</p>';
72
        echo '<p>If the CAPTCHA does not work (e.g. because of wrong keys, please run <a href="<?php echo OIDplus::getSystemUrl(); ?>setup/">setup part 1</a> again or edit userdata/baseconfig/config.inc.php).</p>';
73
        echo '<div id="g-recaptcha" class="g-recaptcha" data-sitekey="'.OIDplus::baseConfig()->getValue('RECAPTCHA_PUBLIC', '').'"></div>';
73
        echo '<div id="g-recaptcha" class="g-recaptcha" data-sitekey="'.OIDplus::baseConfig()->getValue('RECAPTCHA_PUBLIC', '').'"></div>';
74
 
74
 
75
        if (isset($_REQUEST['sent'])) {
75
        if (isset($_REQUEST['sent'])) {
76
                $secret=OIDplus::baseConfig()->getValue('RECAPTCHA_PRIVATE', '');
76
                $secret=OIDplus::baseConfig()->getValue('RECAPTCHA_PRIVATE', '');
77
                $response=$_POST["g-recaptcha-response"];
77
                $response=$_POST["g-recaptcha-response"];