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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Checksum token strange behaviour?
Pages: [1]

Author Topic: Checksum token strange behaviour?  (Read 350 times)

divemasterza

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.4+
  • CMS version: WP
  • MySQL version: 5.6
  • PHP version: 5.4
Checksum token strange behaviour?
January 27, 2014, 01:31:15 am
Hi,

I have a HTML mailer that include a checksum token.
http:/www.myorganization.org/?page=CiviCRM&q=civicrm/profile/edit&reset=1&gid=N&{contact.checksum}&cid={contact.contact_id}

The checksum tokens are valid for 7 days, I also have anonymous user in the  ACLs to allow profile editing and viewing.

When the mailer is sent:

1) Checksum and cid are properly generated and inserted
2) Profile selected display all fields on the front-end

But, if the link is browsed as 'anonymous' or 'logged out' user, none of the fields are pre-filled.
On the other hand, if I login to WP it does not matter what profile I am trying to edit (cid) it pre-fills the fields with 'logged user' data

Anyone has some insight or solution to this?

-Steph

« Last Edit: January 27, 2014, 01:49:46 am by divemasterza »

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: Checksum token strange behaviour?
January 27, 2014, 08:03:08 am

try changing your token to this link instead:

http:/www.myorganization.org/?page=CiviCRM&q=civicrm/profile/edit&reset=1&gid=N&{contact.checksum}&id={contact.contact_id}

i.e. change the cid to id

that is an inconsistency within the codebase :(

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

divemasterza

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.4+
  • CMS version: WP
  • MySQL version: 5.6
  • PHP version: 5.4
Re: Checksum token strange behaviour?
January 27, 2014, 08:38:26 am
Thank you!
Sorted out with this solution



-Steph

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Checksum token strange behaviour?

This forum was archived on 2017-11-26.