As per discussion here https://www.drupal.org/node/2700205#comment-11253307
we should be disabling email address field when someone joins from invitation.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mohit_aghera created an issue. See original summary.

mohit_aghera’s picture

mohit_aghera’s picture

Status: Active » Needs review
mohit_aghera’s picture

Parent issue: » #2700205: [invite] Invite
Related issues: +#2700205: [invite] Invite
matsbla’s picture

Status: Needs review » Needs work

I've tested this patch, but I'm still asked to fill in my email when I try register after receiving an invite

renatog’s picture

Category: Task » Feature request

It's is because the invite_by_email_load_from_session return FALSE.

It's because is there this code:

 if (isset($_SESSION[INVITE_SESSION_CODE])) {
    /** @var \Drupal\invite\InviteInterface $invite */
    $invite = \Drupal::entityManager()->getStorage('invite')->loadByProperties(array('reg_code' => $_SESSION[INVITE_SESSION_CODE]));
  }

But there is not this constant: INVITE_SESSION_CODE

renatog’s picture

Issue summary: View changes
Status: Needs work » Active
FileSize
1.82 KB
46.19 KB

Hi Guys.

In attachment the patch with the fix.

Image:

Good Work.

Best,

  • RenatoG committed 4b6b99b on 8.x-1.x
    Issue #2752037 by mohit_aghera, matsbla, RenatoG: Disable email address...
renatog’s picture

Assigned: mohit_aghera » Unassigned
Status: Active » Fixed

Fixed.

Committed to the dev branch: 8.x-1.x

Thank you very much for your contribution guys.

Good Work.

Best,

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.