reCAPTCHA on login

reCAPTCHA on login

by Alex Balabanoff -
Number of replies: 7

Hi all,

 

I could really use some help on this one! Googling and searching these forums didn't help, unfortunately sad

 

My situation is as follows:

- I have a bunch of manual accounts on my Moodle site (~500);

- I would like to use reCAPTCHA on the login page (not on the new account page);

- the idea is that on login users need to provide not only their username & password, but also a correct captcha.

 

What would be the right way to do it? I thought about creating an authentication plugin, but, if I'm not mistaken, authentication plugins in Moodle do not reject users but rather accept them; i.e., if my custom plugin rejects a user based on an incorrect captcha, he will still be logged in by the Manual Accounts plugin. And I wouldn't want to duplicate the Manual Accounts' functionality...

 

Thanks in advance!

Average of ratings: -
In reply to Alex Balabanoff

Re: reCAPTCHA on login

by Mattias Gonzalez -
Hi. im stuck with the same issue and i want to know if you found a way to use reCaptcha in the login form. If so, i really need your help! Thanks. Mattias
In reply to Mattias Gonzalez

Re: reCAPTCHA on login

by Kathir R -

Hi

I need some help in moodle .
How to use captcha in moodle login page (/login/index_form.html) and  blocks login page (blocks/login/block_login.php )in moodle 1.9. ?

 

Thanks

Kathir.R

In reply to Kathir R

Re: reCAPTCHA on login

by bina singh -

Hi

I need some help in moodle 2.5.1.
How i can add  captcha in moodle login page .

In reply to bina singh

Re: reCAPTCHA on login

by Heather P -

Hello

did you get Recaptcha to work at all in a Moodle 2?

Thanks

In reply to Alex Balabanoff

Please make reCAPTCHA on login a regular feature of Moodle 3.3

by Martin Biermann -

A captcha on login is a requirement of from my IT security administration for my site https://nukit.ihelse.net/moodle

Before I was allowed to launch our national teaching website for Nuclear Medicine specialists in Norway, the system was scrutinized for potential security issues and this was an absolute requirement that I had to fix before my Moodle server could go online.

So please introduce this feature in Moodle 3.3!

I wrote my own PHP code first in Moodle 2.9 and now in Moodle 3.2. In Moodle 3.2, only ./login/index.php needs to be modified. I published my code example on Moodle Tracker as MDL-53368. It is just one code block that needs to be pasted in. Unfortunately, this needs to be done every time Moodle is upgraded. 

As for the captcha on self-registration, the keys should be stored in the database. If the fields with the keys are left blank in the database then the captcha code should not be run. I recently ran my first course on Moodle. Google recaptcha 2 worked fine even on mobile devices and none of my users complained. An alternative could be Google 2-factor authentication, but this is probably too cumbersome for most users.


Average of ratings: Useful (1)
In reply to Martin Biermann

Re: Please make reCAPTCHA on login a regular feature of Moodle 3.3

by Ken Task -
Picture of Particularly helpful Moodlers

Just tinkered with a 3.2+ (Build: 20161208) site and recaptcha ... after acquiring the keys checked the DB and the keys were there.

select * from mdl_config where name like 'recap%';

recaptchaprivatekey =
recaptchapublickey =

Also checked out the https:// url you shared.

Certificate valid?   Might explain issues with reCapcha (of course I could be missing the point)

Try curl -I https://yoursite/moodle/

and see what you get.

'spirit of sharing', Ken

Attachment Screen Shot 2016-12-25 at 4.33.37 PM.png