-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It is possible to create 2 users with the same email address #351
Comments
In the title, I guess that you mean "with the same email address" |
Yes, you are right. editing the title |
Moving to development - it's not a regression and will be addressed later |
@davitol should the QA-team do something here? If not maybe lets take off the QA-team tag |
Created PR: owncloud/core#36050 |
This issue depends on the decision whether:
|
In this case, the guest app should not depend on the behavior in core. My suggestion: if an email address already exists, this address cannot be used for a guest account. Edit: In 2017 @PVince81 wrote "duplicate email addresses are forbidden" - see owncloud/core#27626 (comment) |
I have verified that guest app actually takes care of the user creation from the UI part. That is say if I have created 2 users |
Aah now I got the reference. There is a PR owncloud/core#27662 which actually allows the core to have multiple email address. So I would say we can close this issue? If every one here agrees then I can also close my PR too. Let me know the opinion here @davitol @individual-it @phil-davis |
I'd recommend not to close this issue. IMO guest users' email addresses should be unique and from a user's point of view it wouldn't make sense to create a guest user who is already a regular ownCloud user. |
IMO, when creating a guest user, the email address should not be allowed to be one that is already in use by a regular user. That should be easy to implement (might already be like that). The more challenging is the reverse. When:
What should happen if the email address already matches the email address of a guest user? |
I thought the user:sync process would already fail in such cases ? cc @jvillafanez might know |
At least from the webUI part, a guest user cannot be created if an oC instance has same email assigned to existing user(s). |
I'm not aware of any email check during the user:sync. It's the userid the one that needs to be unique. There were some changes aiming for LDAP in case an LDAP userid collides with another LDAP userid, but I think the userid was just ignored or overwritten.
This is why I'd rather either force unique emails at DB level, or allow duplicates regadless of where the user comes from. I don't think there is an easy way to go around this, and I wouldn't want to implement and maintain complex logic that can easily fail and cause problems. |
@pmaier1 @jvillafanez I suspect that this can bee closed. |
It isn't clear to me what to do:
I guess the easiest solution is "do nothing", but we probably need to ensure there is no risk involved. |
Steps to reproduce
mail@mymail.com
mail@mymail.com
Expected behavior
An error message should be shown, mail should not be sent and the user should not be create
Actual behavior
Mail is sent and the user can be created
Tested with oC 10.3.0 prealpha and Guests 0.8.2. RC1
The text was updated successfully, but these errors were encountered: