News:

Support the VirtueMart project and become a member

Main Menu

Recaptcha not hiding for logged in users

Started by patbe60, March 05, 2016, 11:58:58 AM

Previous topic - Next topic

patbe60

Hello
I enabled the option "Use ReCaptcha for Registration". The Captcha field is also showing for logged in users. It is not hidden as it should be. See attached file.
The Recaptcha function works fine for "Ask a question". It is shown for unlogged users but hidden for logged in users.

Tested with J 3.4.8, protostar template, VM 3.0.13.6

Regards
Patrik

Studio 42

I think, you use easy recaptcha, or simillar.
Some system captcha plugin do not check for user connected and are always active.

patbe60

Thank you for your reply.

I'm just using the default Captcha of Joomla. It's the new Recaptcha 2. And as I said, it works fine with "Ask a question".

Regards
Patrik

patbe60

Still not solved in VM 3.0.14

Here is a solution:

/components/com_virtuemart/views/user/tmpl/edit.php

Change the following code in line 76:

if(VmConfig::get ('reg_captcha')){

into:

if(VmConfig::get ('reg_captcha') && JFactory::getUser()->guest == 1){

Milbo

thx, added. But I use this line

if($this->userDetails->virtuemart_user_id!=0 and VmConfig::get ('reg_captcha')){
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

patbe60

In this case I don't see the captcha when not logged in. But I see the captcha when logged in.

Milbo

#6
lol of course
weekend mod, sry

It is just a == instead of the !=, or you can just add the whole "if" to the "else" above
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

patbe60