Open StCyr opened 7 months ago
This is already implemented in the handler handle_orcid
: https://github.com/DMPbelgium/roadmap/blob/master/config/initializers/ugent.rb#L1336
There I try to match first on ORCID, and if that fails on email. In the second case I add the ORCID to it, if not already added.
It looks like this happened somewhere else, not?
argh match didn't work because user typed her email address with an uppercase letter while it's all lowercase in the database
Please complete the following fields as applicable:
What version of the DMPRoadmap code are you running? (e.g. v2.2.0)
dmponline.be
Expected behaviour:
A person has a guest account in dmponline. Later she wants to become a user, logging in with her orcid ID.
System should recognise that the email addresses are the same and automaticaly add this orcid ID to the already existing account
Actual behaviour:
System replies "Email has already been taken"
Steps to reproduce: