General plugins

New activity: Simple Certificate

 
Picture of Carlos Alexandre Fonseca
Re: New activity: Simple Certificate
Plugin developers

see this lines in locallib.php,  it's  xls generation code

https://github.com/bozoh/moodle-mod_simplecertificate/blob/master/locallib.php#L2113-L2154


and at this where data is fetched to xls file

https://github.com/bozoh/moodle-mod_simplecertificate/blob/master/locallib.php#L2135-L2149

i think it will be simple to add the users email



 
Average of ratings: -
Picture of Kevin Freeborn
QR Code not being verified
 

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

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: QR Code not being verified
Plugin developers

remove the captcha for while

 
Average of ratings: -
Picture of Suzanne Grainger
Re: QR Code not being verified
 

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?


 
Average of ratings: -
Picture of Hal MacLean
Re: QR Code not being verified
 

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.

 
Average of ratings: -
Picture of Suzanne Grainger
Re: QR Code not being verified
 

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. 

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: QR Code not being verified
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

 
Average of ratings: -
Picture of Suzanne Grainger
Re: QR Code not being verified
 

Hi Carlos,

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

 
Average of ratings: -
Picture of Suzanne Grainger
Re: QR Code not being verified
 

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.

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: QR Code not being verified
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

 
Average of ratings: -
Picture of Carlos Alexandre Fonseca
Re: QR Code not being verified
Plugin developers

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


 
Average of ratings: -
Picture of Hal MacLean
Re: QR Code not being verified
 

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!

 
Average of ratings: -