? Success

User tests: Successful: Unsuccessful:

avatar roland-d
roland-d
26 Jan 2015

This PR removes the noCaptcha plugin and merges it with the reCaptcha plugin. This way we have 1 reCaptcha plugin capable of using both the old and new keys depending on selected version.

Testing
To test, use reCaptcha version 1.0 with global keys and specific keys, all should continue to work as-is.
Also test version 2.0 with the new keys and you should get the new reCaptcha. The new keys also work with version 1.0.

After selecting the reCaptcha version, putting in the keys and selecting a theme. Check if the reCaptcha works on the front-end of the site.

avatar roland-d roland-d - open - 26 Jan 2015
avatar jissues-bot jissues-bot - change - 26 Jan 2015
Labels Added: ?
avatar roland-d roland-d - change - 26 Jan 2015
Milestone Added:
avatar losedk
losedk - comment - 26 Jan 2015

@test Works fine.

Old version:

skaermbillede 2015-01-26 kl 11 07 37

New version:

skaermbillede 2015-01-26 kl 11 07 44

avatar infograf768
infograf768 - comment - 26 Jan 2015

Typo:
+PLG_RECAPTCHA_VERSION_DESC="Choose the reCaptcha version neede for your keys"

testing now.

avatar infograf768
infograf768 - comment - 26 Jan 2015

@roland-d

I suggest to make it clearer that the new version (Version2 ?) does NOT accept Global keys.
Could be in the description or as a tip

avatar brianteeman
brianteeman - comment - 26 Jan 2015

I agree with with @infograf768

Perhaps
+PLG_RECAPTCHA_VERSION_1="1.0"
+PLG_RECAPTCHA_VERSION_1_DESC="Required if using Global CAPTCHA keys."
+PLG_RECAPTCHA_VERSION_2="2.0"
+PLG_RECAPTCHA_VERSION_2_DESC="Recommended version."

avatar nikosdion
nikosdion - comment - 26 Jan 2015

@test Success :+1:

In detail:

  • Version 1.0 with global key: works as expected
  • Version 1.0 with site key: works as expected
  • Version 2.0 with global key: ReCAPTCHA complains about wrong key or domain as expected
  • Version 2.0 with site key: works as expected

Tested with front-end user registration and com_contact.

avatar infograf768
infograf768 - comment - 26 Jan 2015

@test
Works fine here.

Just needs the improvements for the versions and we can merge, as we freeze langs tomorrow

avatar nonumber
nonumber - comment - 26 Jan 2015

Seems a bit weird that version 2.0 is the 'Recommended version.', but version 1.0 is the default active one.

avatar roland-d
roland-d - comment - 26 Jan 2015

Thanks for testing everybody. I have updated the language files and believe they are good now.
@brianteeman I can't do a language string per version, so I have combined both into one.
Please check if all is OK now.

avatar nikosdion
nikosdion - comment - 26 Jan 2015

@nonumber Having read the past discussions, this strange default value seems to spring from the need to have a continuity for people using global keys. Version 2 API doesn't support global keys. If version 2 was the default, sites using global keys upgrading to Joomla! 3.4 would no longer have a functioning ReCAPTCHA misleading users into believing that Joomla! 3.4 is "broken". I'm not a fan of this default value either, but it's the only compromise solution to cater for the people who don't read the release notes, i.e. virtually everybody using Joomla!.

avatar infograf768
infograf768 - comment - 26 Jan 2015

OK for me

@nonumber
I guess this is for B/C reasons

avatar roland-d
roland-d - comment - 26 Jan 2015

Indeed that 1.0 is the default value, only reason is for backwards compatibility reasons. Those using global keys would on update have a broken reCAPTCHA. This way we ensure that keeps working.

avatar brianteeman
brianteeman - comment - 26 Jan 2015

@roland-d I would go with @wilsonge comment about stating that v1 is deprecated

avatar roland-d
roland-d - comment - 26 Jan 2015

Updated the strings again :)

avatar Bakual
Bakual - comment - 26 Jan 2015

Can we show a deprecated warning in the module parameter view when v1 is selected or the version param is not yet saved? Could be done simple with a dummy formfield above the version field and the showon feature.
This way people would clearly see that they should choose v2 and it would solve the issue with the "wrong" default value (which we correctly have for BC reasons).

avatar roland-d
roland-d - comment - 26 Jan 2015

@Bakual Thanks on the theme parameter. It's fixed now. As for showing the message, that is fine by me. Just need to know what the text needs to be :)

avatar brianteeman brianteeman - change - 26 Jan 2015
Category Plugins
avatar roland-d
roland-d - comment - 26 Jan 2015

@nonumber Thanks for the suggestion, I have cleaned up the code per your suggestion.

avatar nonumber
nonumber - comment - 26 Jan 2015

Nice

avatar Bakual
Bakual - comment - 26 Jan 2015

As for showing the message, that is fine by me. Just need to know what the text needs to be :)

Would need input from @brianteeman, but I would do something like "You have selected the deprecated version of this plugin. It's recommended to select version 2. Make sure you have supported keys for that version before switching."

avatar brianteeman
brianteeman - comment - 26 Jan 2015

Displaying a message is good but I think the tone and meaning of that proposed text is not right.

I think it needs to say something like
"You have selected Version 1. All new sites should be using Version 2. Version 1 is only maintained to provide support for Global Site keys which are no longer available from Google."

avatar roland-d
roland-d - comment - 26 Jan 2015

Is it all good now or do we need more language updates?

avatar brianteeman
brianteeman - comment - 26 Jan 2015

All good to me - thanks

avatar zero-24 zero-24 - alter_testresult - 26 Jan 2015 - losedk: Tested successfully
avatar zero-24 zero-24 - alter_testresult - 26 Jan 2015 - nikosdion: Tested successfully
avatar zero-24 zero-24 - alter_testresult - 26 Jan 2015 - infograf768: Tested successfully
avatar zero-24 zero-24 - change - 26 Jan 2015
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 26 Jan 2015

Thanks for testing and review moving to RTC based on various tests. Thanks!


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5888.
avatar zero-24 zero-24 - change - 26 Jan 2015
Milestone Added:
Easy No Yes
avatar roland-d roland-d - change - 27 Jan 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-01-27 07:19:45
avatar roland-d roland-d - close - 27 Jan 2015
avatar roland-d roland-d - close - 27 Jan 2015
avatar infograf768
infograf768 - comment - 27 Jan 2015

Thanks. Merged after correcting also the installation sql files and en-GB.install.xml

avatar mManishTrivedi
mManishTrivedi - comment - 11 Feb 2015

I want to work on it for Joomla but I am too late. :pensive:

Still I have submitted new plugin on JED for reCaptcha2. :relaxed: Now I am finding new stuff for Joomla.

avatar roland-d roland-d - head_ref_deleted - 6 May 2015

Add a Comment

Login with GitHub to post a comment