New activity: Simple Certificate

QR Code not being verified

by Kevin Freeborn -
Number of replies: 10

Hi Carlos,

We have installed the Simple Certificate on Moodle 3.1.  Created the certificate and printed the QR code on the certificate.  When I scan the QR code it for a student takes me to https://campus.foodsafetymarket.com/mod/simplecertificate/verify.php?code=7da922b0-44c0-11e8-bfa3-dde0f7acbccc.

I complete the CAPTCHA, click Verify button and noting happens.

Here is a screencast https://www.screencast.com/t/KI4SLH2le4

In reply to Kevin Freeborn

Re: QR Code not being verified

by Carlos Alexandre Fonseca -
Picture of Plugin developers

remove the captcha for while

In reply to Carlos Alexandre Fonseca

Re: QR Code not being verified

by Suzanne Grainger -

Hi Carlos,

I am having the same problem with not being able to reach the confirmation via the QR code.

Turned off captcha but captcha still showing from Code Reader.

Do you have a solution please?


In reply to Suzanne Grainger

Re: QR Code not being verified

by Hal MacLean -

I thought this had started happening for me, but was testing it using an Administrator account. When I checked a learner's certificate it verified, but each time I produced a 'test' certificate as an admin it failed.

I even went back to older certificates which do not use the QR feature, and added in the code from the certificate settings page - it worked.

We don't use Captcha.

In reply to Hal MacLean

Re: QR Code not being verified

by Suzanne Grainger -

With captcha removed the QR code works.

But I want/need to use captcha to protect the site as it is email-based authentication.

Prior to Google V2 of captcha verification was working. 

In reply to Suzanne Grainger

Re: QR Code not being verified

by Carlos Alexandre Fonseca -
Picture of Plugin developers

Until now i don't have a fix to this,  so you can re-enable you capctha and change the file:

mod/simple_certificate/verify_form.php
, at line 36 and 47:

https://github.com/bozoh/moodle-mod_simplecertificate/blob/master/verify_form.php#L36
https://github.com/bozoh/moodle-mod_simplecertificate/blob/master/verify_form.php#L47

to:

if (false && $this->is_recaptcha_enabled()) {

with this you will disable captcha only in certificate, it will be nice if this could be done in plugins settings,  i will put this there in future

In reply to Carlos Alexandre Fonseca

Re: QR Code not being verified

by Suzanne Grainger -

Hi Carlos,

Thank you for this. Will try as soon as possible and confirm result. 

In reply to Suzanne Grainger

Re: QR Code not being verified

by Suzanne Grainger -

Tested today and it works! Changed the code at server level because i have access there.

Tried to changed the file in the zip package but could not upload successfully. Will be good if you can include the code change in next release.

In reply to Suzanne Grainger

Re: QR Code not being verified

by Carlos Alexandre Fonseca -
Picture of Plugin developers

yes,  i think  it will be fixed in next release,  but not this fix,  a working one,  this only disable captcha for this plugin

In reply to Hal MacLean

Re: QR Code not being verified

by Carlos Alexandre Fonseca -
Picture of Plugin developers

Admin  certificate, as i said,  it's not saved, so can't be verified.


In reply to Carlos Alexandre Fonseca

Re: QR Code not being verified

by Hal MacLean -

Yes, sorry - I was actually confirming your point, but made it seem like I had a problem with it! Admin certificates don't verify (and that is correct). 

Without Captcha, user certificates are fine!