If you have configured your site to require any custom fields in the user entity on registration, or to require any profiles from Profile2, then the Gigya Complete Your Registration (gigya_regester_form in the code) form will show up for users even if the social network provides the email address. When you then try putting in the email address and clicking Submit, the form will reload with an error message about an undefined $account variable.

I believe this is because the form is "standing in" for the regular user registration form which, in this case, has an added validation hook to check for the added required fields on the user entity, or the Profile2 profile.

I am working on a patch that will add a hook_form_alter to handle fields on the user entity. I will not add the part for the Profile2 profile, though, so someone else would need to work on that.

CommentFileSizeAuthor
#1 1720744_required_fields.patch1.16 KBgambaweb
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gambaweb’s picture

you can user the hook_gigya_create_user_alter it was there I just missed it in the documentation
attached is a patch that fixes the undefined variable and adds documentation for the hook

EvanDonovan’s picture

Thanks, this looks good, then. We've postponed this to another phase of the project for now. My main issues at the moment are the ones pertaining to the profile fields.

robcolburn’s picture

Issue summary: View changes
Status: Active » Closed (fixed)