CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Use of recaptcha in a profile
Pages: [1]

Author Topic: Use of recaptcha in a profile  (Read 909 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Use of recaptcha in a profile
January 31, 2013, 10:59:07 am
I have a profile that is configured to include a recaptcha.     If I use the "create" style URL (http://mygroup.org/civicrm/profile/create?reset=1&gid=17)  then the recaptcha works as expected.    But if I use the "edit" style URL (http://mygroup.org/civicrm/profile/edit?reset=1&gid=17) then the recaptcha is not shown.           

Is there something else I need to configure for recaptcha to work on "create" style URLs?   Or is this a limitation?

« Last Edit: February 01, 2013, 11:58:30 am by epg »
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Use of recaptcha in a profile
February 04, 2013, 05:49:07 pm
I am wondering if anything has changed in this respect. A client just started complaining about spammers on a profile that has recaptcha set up - when i checked, it wasn't showing - it was linking to /edit - when i change it to /create the captcha kicks in

if this is a change then there could be a lot of profiles out there that are not protected as expected
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Use of recaptcha in a profile
February 07, 2013, 01:10:14 pm

i dont think anything changed recently with this. Edit would suppress recaptcha / cms user creation (it is edit after all) and create would show both

We just filed and fixed this for 4.3, check:

http://issues.civicrm.org/jira/browse/CRM-11848

so if edit is actaully a create for anon user, we do the right thing

lobo


A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Use of recaptcha in a profile
February 07, 2013, 01:37:43 pm
just spotted this in irc - not sure i have digested it fully in terms of the comment here by lobo but pasting and cleaning up so it is easier to follow

[22:27] <lcdweb> dgg: ok, so 1) the distinction between profile create and profile edit is important, but sometimes not easily understood. and in particular -- we currently suppress user account creation and recaptcha on profile edit -- whcih is not always expected
[22:27] <lcdweb> dgg: I had two clients in the last week very confused because recaptcha wasn't showing up
[22:28] <lcdweb> dgg: I think we should only condition those two elements on whether the user is authenticated or not. both should be allowable for both create and edit forms
[22:29] <dgg> lcdweb: so allow user create on profile/edit if anonymous user?
[22:29] <lcdweb> dgg: yes. and also allow recaptcha if anonymous
[22:29] <dgg> user create seems reasonable
[22:30] <lcdweb> dgg: 2nd is just a terminology thing. somewhere in a recent version we changed the "used for" checkbox in profile settings to "standalone form or directory"
[22:31] <lcdweb> dgg: by that we mean -- the profile is accessed directly, not as embedded in a reg form or something
[22:31] <dgg> right
[22:31] <lcdweb> dgg: but then in the help text for recaptcha we say: Do not enable this feature for stand-alone profile forms. reCAPTCHA requires dynamic page generation. Submitting a stand-alone form with reCAPTCHA included will always result in a reCAPTCHA validation error.
[22:32] <lcdweb> dgg: and by that we mean... as an html snippet
[22:32] <lcdweb> dgg: I think we used to use "standalone" to refer to html snippet. then we started using it to refer to the profile path link.
[22:33] <lcdweb> dgg: so I think we should just adjust the help text in the recaptcha to indicate the html snippet usage rather than standalone
[22:33] <dgg> lcdweb: agreed on that
[22:33] ash4 (~ash4@63.118.57.211) left irc: Ping timeout: 272 seconds
[22:34] <dgg> lcdweb: on profile/edit functionality - how do your users access profile/edit when anonymous? (assume checksum auth is only way)
[22:34] <dgg> in which case they are already authenticated
[22:35] <lcdweb> dgg: no... sometimes it's exposed and has the effect of contact create when not logged in, but with prefilled data when logged in
[22:35] <lcdweb> dgg: which is different than profile create -- which will always be empty regardless of whether you are logged in
[22:36] <lcdweb> dgg: so a subtle but important distinction
[22:36] <lcdweb> dgg: and checksum doesn't actually log the person in. it just connects the contact for the purpose of that one form
[22:37] <lcdweb> dgg: I have to step away. but if you agree re: profile eidt -- i can file an issue and take a look at it
[22:37] <dgg> so side chat w/ lobo
[22:37] <dgg> on profile/edit
[22:37] <dgg> if user is actually anonymous (i.e. form is behaving like profile/create) - then this is a 'bug' - it should follow create rules and include user create / recaptcha if configured for that profile
[22:38] <dgg> so that will cover the client case you're describing
[20:08] <civi-bot> dgg: CRM-11848 If anonymous user accesses profile/edit patch AND profile settings are configured to use reCaptcha and / or provide user registration option - then enable those 'features'. NOTE: checksum authentic... -- http://issues.civicrm.org/jira/browse/CRM-11848
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Use of recaptcha in a profile
February 07, 2013, 01:38:56 pm
So yes i think the fix is what was required but I still think something must have changed at some point since it seems to have caught lcdweb and our clients out at some point. No worries. Roll on the next upgrade
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Use of recaptcha in a profile

This forum was archived on 2017-11-26.