New activity: Simple Certificate

QR Code not being verified

Kevin Freeborn tomonidan -
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

Carlos Alexandre Fonseca tomonidan -
Plugin developers rasmi

remove the captcha for while

In reply to Carlos Alexandre Fonseca

Re: QR Code not being verified

Suzanne Grainger tomonidan -

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

Hal MacLean tomonidan -

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

Suzanne Grainger tomonidan -

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

Carlos Alexandre Fonseca tomonidan -
Plugin developers rasmi

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

Suzanne Grainger tomonidan -

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

Suzanne Grainger tomonidan -

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 Hal MacLean

Re: QR Code not being verified

Carlos Alexandre Fonseca tomonidan -
Plugin developers rasmi

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

Hal MacLean tomonidan -

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!