This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/WebGUI/Form/Captcha.pm b/lib/WebGUI/Form/Captcha.pm | |
index 21fab77..a0130a1 100644 | |
--- a/lib/WebGUI/Form/Captcha.pm | |
+++ b/lib/WebGUI/Form/Captcha.pm | |
@@ -111,7 +111,7 @@ sub getValue { | |
my $ua = LWP::UserAgent->new; | |
my $res = $ua->post('http://api-verify.recaptcha.net/verify', { | |
privatekey => $privKey, | |
- remoteip => $self->session->env->getIp, | |
+ remoteip => $self->session->request->env->{REMOTE_ADDR}, | |
challenge => $challenge, | |
response => $response, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment