certat / do-portal

This project is in maintenance mode and will only receive bug fixes, but no new features. A new version of this software is being developed.
5 stars 5 forks source link

Handling of duplicate mail addresses across organizations #97

Closed ghost closed 4 years ago

ghost commented 5 years ago

Currently it is forbidden to create multiple users with the same email address. But this may lead to a problem. Imagine two unrelated organizations 1 and 2 with the admins A and B.

A creates a user/contact under 1 with test@example.com. As test@example.com is also active at 2, B does the same and receives an error message. B can't create the user and also can't see the existing user of test@example.com, as the user is only visible in 1

certrik commented 4 years ago

Still to decide how wo solve this.

MarkHofstetter commented 4 years ago

the use case seems rather far fetched imho. At the moment the email is also the login name so it has to be unique

ghost commented 4 years ago

the use case seems rather far fetched imho. At the moment the email is also the login name so it has to be unique

Not all contacts are users. And some people are part of multiple organizations.

certrik commented 4 years ago

Can we somehow just link the already existing contact/user to the new organisation.

MarkHofstetter commented 4 years ago

that's already possible but only for an "upstream" admin

certrik commented 4 years ago

Error message shows password in plaintext grafik

MarkHofstetter commented 4 years ago

Error message shows password in plaintext grafik

removed, was debugging

MarkHofstetter commented 4 years ago

works in principle, the only the problem remaining is that an alias user has to be created as another user before being changed to the correct role