If a given anonymous user signs up for an event with an email address that is later used to register on the site, the new registrant should become linked to the prior signups.

Patch attached.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

djdevin’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
777 bytes

Just cleaned up the patch a little bit - also, I don't think it's necessary to store the user's name in the form_data - we're already linking it to the account.

There might be a lot more to think about:

1) When email has to be verified (we don't want to assign signups to a pending user)
2) When users can change their own emails without validation

djdevin’s picture

Status: Reviewed & tested by the community » Needs review
scottrigby’s picture

Status: Needs review » Reviewed & tested by the community

The pending email confirmation issue is just as secure as signups during registration.

Once the new user logs in, they can manage their signups in the event someone signed them up as a hoax (like, if someone signs up Barack Obama's email for an anon signup). This patch actually makes the process a bit better IMO… prior to this, the cancel anon signup URL was the only way to cancel a signup, and if that email is deleted - too bad. But now the user can log in and handle it.