Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › reCAPTCHA and SSL
- This topic has 8 replies, 2 voices, and was last updated 13 years, 3 months ago by amin007.
-
AuthorPosts
-
August 5, 2011 at 2:09 am #3992drvMember
I am running a login page with [wp_eMember_login_form:end] under https and I have a issue because there are some insecure contents, basically from reCAPTCHA enviroment ( http://api.recaptcha.net/challenge?… and others like that).
Do I need to set SSL somewhere?
On the other hand, I think reCAPTCHA library need to be updated witht this info:
http://groups.google.com/group/recaptcha/browse_thread/thread/57baacc2a067035a/ea0303e7d7a49262
August 5, 2011 at 3:21 am #35197amin007ParticipantPlease post a URL to your login page.
August 5, 2011 at 4:31 am #35198drvMemberok, it is https://www.globalchase.eu/inscripcion-de-usuarios/suscripcion-globalchase/
Now is with original files. You can see the problem.
I made a quick test and problem would dissapear if I had modified recaptchalib.php:
in line 39 “https://www.google.com/recaptcha/api” and in line 106: $use_ssl = true
August 6, 2011 at 12:17 am #35199amin007ParticipantWe added another condition in the plugin to take care of this. Please get another build of eMember from here and this SSL issue with recaptcha lib should be fixed:
August 6, 2011 at 2:10 am #35200drvMemberThanks. I got the new code and it is working fine with respect to SSL condition.
However, I’m afraid you forgot to update recaptchalib.php in the build (concerning new URL in line 39), otherwise recaptcha image just dissapear.
Anyway, now my page is working flawless in both (secure and insecure) modes.
August 7, 2011 at 1:17 am #35201amin007ParticipantUpdated the library.
August 8, 2011 at 12:00 am #35202drvMemberHi,
I’m afraid another small change is necessary for SSL.
If you use “Use Gravatar Image in Profile” , that image cause the same problem, because it comes from an insecure source.
According to Gravatar help:
“If you’re displaying Gravatars on a page that is being served over SSL (e.g. the page URL starts with HTTPS), then you’ll want to serve your Gravatars via SSL as well, otherwise you’ll get annoying security warnings in most browsers. To do this, simply change the URL for your Gravatars so that is starts with:
https://secure.gravatar.com/…
Everything else is the same as above (all the same options work), just make sure that the URL starts out like this.”
Following your last approach, I modified eMember_misc_functions.php in a couple of places doing something like this:
if ssl “on” … ‘https://secure.gravatar.com/avatar/’ else …’http://www.gravatar.com/avatar/’
And apparently it is working fine.
August 8, 2011 at 11:59 pm #35203amin007Participantwe will update it to work conditionally (it will use the https version for https site)
August 9, 2011 at 2:08 am #35204amin007ParticipantUpdated this.
-
AuthorPosts
- You must be logged in to reply to this topic.