Recently on a new installation in OC 3.0.2.0 Google reCaptcha I've notice is not being enforced and I'm able to bypass any of the scenarios were the captcha is required and not used.
I have also tried with the Basic Captcha and this one Works correctly.
The secret and the key are added correctly on the admin, the reCaptcha is selected correctly on the "system>settings>option>__" and selected all the checkboxes..
The reCaptacha shows accordingly and the Red * as a Mandatory but I can simply Bypass this verification without the thick on the checkbox and continue with the registration - email etc...
*UPDATE*
FYI
This is common is you are logged in the account from which you took the captcha credentials from and the same Browser (Chrome) - will automatically let you ByPass it (no user action).
As soon as you log out and clear all the cache and try again It won't happen and you will be enforce to reCaptcha to continue.
Regards,
https://www.opencart.com/index.php?rout ... on_id=4773
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Fixed by adding ocmod that unsets the var in google_captcha.php->index(). Added expire() function for use with "data-expired-callback" and javascript callback function in the template. Callback necessary to unset session var when on-page captcha expires prior to submitting form.
Issue persists in latest version. Cannot submit bug/solution via github (banned by Daniel, personality conflict )
--------------------------------------------------
My Blog ↔ My Extensions ↔ OpenCart Templates
have tried this from gittbub
https://github.com/opencart/opencart/co ... ff=unified
still the same
does anyone have a fix to this issue? that has had this before.
thanks.
Annette Kennedy
Thanks For Any Help In Advance
Code: Select all
$this->session->data['gcapcha'] = false;
Code: Select all
return $this->load->view('extension/captcha/google', $data);
Code: Select all
$this->session->data['gcaptcha'] = false;
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
That won't work unless you change gcapcha to gcaptcha elsewhere.straightlight wrote: ↑Sat Jun 19, 2021 5:41 pmCode: Select all
$this->session->data['gcaptcha'] = false;
https://github.com/opencart/opencart/bl ... le.php#L20
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhost.com
Worked like a charm many thanks for that. solved my issueADD Creative wrote: ↑Sat Jun 19, 2021 5:40 pmTry adding.Just before.Code: Select all
$this->session->data['gcapcha'] = false;
Code: Select all
return $this->load->view('extension/captcha/google', $data);
Annette Kennedy
Thanks For Any Help In Advance
I am using 3.0.3.8 ( I had the same issue in 3.0.3.6 too)
Go to this file google.php and edit that file under the location below.
catalog/controller/extension/captcha/google.php
I replaced this line of code below in google.php
return $this->load->view('extension/captcha/google', $data);
to this one below:
$this->session->data['gcapcha'] = false;
return $this->load->view('extension/captcha/google', $data);
Users browsing this forum: No registered users and 155 guests