Royal-Society-of-New-Zealand / NZ-ORCID-Hub

The home of development for the New Zealand ORCID Hub
MIT License
13 stars 8 forks source link

User with two emails responding to invite should over-write email rather than be locked out #1274

Closed Jason-Gush closed 1 year ago

Jason-Gush commented 4 years ago

To reproduce behaviour (for a single organisation):

1/ invite user with a given address in real world usage a addresss@gmail.com This links their ORCID iD with the gmail address 2/ invite user with another address, in real world their address@institution.org.nz

When they respond to the new invite:

Danger! This {ORCID ID} is already associated with other email address of same organisation: {ORGANISATION}. Please use other ORCID iD to login. If you need help the kindly contact orcid@royalsociety.org.nz support for issue

What should happen?

User is identified by their ORCID iD, they should be logged in and (likely for consistency) their email address updated to the address of the new invite.

Jason-Gush commented 4 years ago

Problem is that the user is created on invite and the task associated with them. Sticky to unpick.

Jason-Gush commented 4 years ago

At a minimum we need to change the warning, alternative action is for the admin to edit the users email but let's discuss the implications next catchup.

rpaw053 commented 4 years ago

After discussion (please correct if i have missed anything):

Problem use case:

The below message is only shown for user who has two different emails associated with one organisation and tries to link ORCID iD. Danger! This {ORCID ID} is already associated with other email address of same organisation: {ORGANISATION}. Please use other ORCID iD to login. If you need help the kindly contact orcid@royalsociety.org.nz support for issue

Solution:

Testing:

Jason-Gush commented 2 years ago

To discuss timeline and review approach, remains a problem.

Jason-Gush commented 1 year ago

Still seems to be a problem see: User 9913 and 592, first invite to vuw.ac.nz and second to auckland.ac.nz erroring: https://royal-society-of-new-zealand.sentry.io/issues/3999077825/?project=226636

nad2000 commented 1 year ago

ups, it got merged into the "master" branch instead of "prod" ...

nad2000 commented 1 year ago

This is something else, - https://royal-society-of-new-zealand.sentry.io/issues/3999077825/?project=226636 -it was an attempt to change the email via member view and assigned email that was already assigned to a user to a different use.