Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web: fix ReCaptcha problem #3461

Merged
merged 1 commit into from
Feb 17, 2020
Merged

Conversation

AenBleidd
Copy link
Member

I have no idea why, but out of nowhere ReCaptcha stopped working on both SU and S@h.
Changing an arg to the recaptcha constructor
(from a Stack Overflow entry from 2015) fixed the problem.

I have no idea why, but out of nowhere ReCaptcha stopped working on both SU and S@h.
Changing an arg to the recaptcha constructor
(from a Stack Overflow entry from 2015) fixed the problem.
@codecov
Copy link

codecov bot commented Feb 12, 2020

Codecov Report

Merging #3461 into master will not change coverage by %.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #3461   +/-   ##
======================================
  Coverage    9.27%   9.27%           
======================================
  Files          36      36           
  Lines        5994    5994           
======================================
  Hits          556     556           
  Misses       5438    5438           

@@ -45,7 +45,7 @@ function boinc_recaptcha_get_html($publickey) {
function boinc_recaptcha_isValidated($privatekey) {
if ($privatekey) {
// tells ReCaptcha to use fsockopen() instead of get_file_contents()
$recaptcha = new \ReCaptcha\ReCaptcha($privatekey, new \ReCaptcha\RequestMethod\SocketPost());
$recaptcha = new \ReCaptcha\ReCaptcha($privatekey, new \ReCaptcha\RequestMethod\CurlPost());
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is mentioned here that this requires the cURL extension to be enabled in PHP.
I'm not sure but I believe this extension should be either checked or at least mentioned in documentation if its not enabled by default

@davidpanderson davidpanderson merged commit 1ac7902 into BOINC:master Feb 17, 2020
@AenBleidd AenBleidd deleted the vko_dpa_recaptcha branch February 18, 2020 07:31
@AenBleidd AenBleidd added this to the Server milestone Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

2 participants