-
Notifications
You must be signed in to change notification settings - Fork 66
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
Duplicate emails are allowed #3720
Comments
this is a broader issue. When I refactored the users module, I tried to duplicate existing functionality to maintain BC In the past, unique emails were not required if the login method was set to login as username. This is still the case (you can set the method to uname and login with two unique unames but same email). so, this ticket actually is not about ZAuth vs. OAuth but rather that the Users module allows duplicate emails in some situations. This was done by design. I'm not sure this is something that can be changed for 1.5 because in order to maintain BC, I think duplicate emails must continue to be allowed. I guess I am not certain how to proceed with this. |
refs #3256 |
I would like to see a behavior to deactivate the new account after registration and show up with a message. The admin can descide how to proceed. One way could be to delete the fresh account. The other way would be to give the old account a new mail address and activate the new one. But that is than done not with a workflow, it is done by hand. Would this work around be possible? |
anything is possible given enough time. possible in 2.0? no. @Guite do you have any thoughts on this? |
@Guite - I think this can be moved to 2.1 or 3.0. thoughts? |
after discussion with @Guite, postponed to 2.1.0 (or later) |
For reference here are some pointers to the "unique email" setting Users had earlier: https://github.com/zikula/core/blob/1.3/src/system/Users/templates/users_admin_config.tpl#L156 |
I have a zikula installation where duplicate emails are required for this use case and therefore I vote to not change this behaviour or at least introduce a config var for that. |
Possibly related to
|
If duplicate emails are used as the same user I have also no problem with it. My issue: If a user is logged in regulary and at another day via facebook Zikula is not using both as the same user. |
This issue needs to be solved at 3.0.0 or 4.0.0 not between |
This is a copy of the conversation from slack, moved here so that it does not get forgotten or lost on slack. @Guite @gfr @rallek if you wish your comments removed please let me know and I will remove them. thank you Craig Heydenburg:coffee: 8:24 AM Gabriel Freinbichler 9:42 AM Craig Heydenburg:coffee: 9:50 AM Gabriel Freinbichler 9:53 AM Craig Heydenburg:coffee: 9:55 AM Gabriel Freinbichler 9:56 AM Craig Heydenburg:coffee: 9:57 AM Gabriel Freinbichler 9:57 AM Craig Heydenburg:coffee: 9:58 AM Ralf Köster 10:26 AM Gabriel Freinbichler 10:29 AM Ralf Köster 10:29 AM Gabriel Freinbichler 10:30 AM Axel Guckelsberger 10:32 AM Gabriel Freinbichler 10:32 AM Ralf Köster 10:34 AM Gabriel Freinbichler 10:35 AM Ralf Köster 10:35 AM Gabriel Freinbichler 10:35 AM Ralf Köster 10:37 AM Gabriel Freinbichler 10:38 AM Ralf Köster 10:39 AM Gabriel Freinbichler 10:40 AM Ralf Köster 10:44 AM Axel Guckelsberger 10:45 AM Gabriel Freinbichler 10:45 AM Ralf Köster 10:45 AM Axel Guckelsberger 10:46 AM Ralf Köster 10:48 AM Gabriel Freinbichler 10:48 AM Craig Heydenburg:coffee: 7:23 PM Axel Guckelsberger 1:32 AM Simple PollAPP 2:11 AM Craig Heydenburg:coffee: 8:50 AM Craig Heydenburg:coffee: 9:52 AM Axel Guckelsberger 10:15 AM Craig Heydenburg:coffee: 10:23 AM Axel Guckelsberger 10:29 AM |
some thoughts on error messages on failed logins: basically - the accepted practice is to make failed login error messages as generic as possible, but this of course comes at the cost of reduced usability. Zikula currently errs on the side of security with a simple message of:
The obvious problem with the security argument is the registration page problem as brought up in the linked discussions. Zikula currently has the following notice:
This makes is clear that 'foobar' is a valid username and the hacker can then begin their brute force attack on the password. So - in Zikula's case, this is less secure in the interest of usability. This doesn't answer the main question in OP, but some other questions about login messages were raised, so I wanted to put my thoughts here. |
My thinking is that we should disallow registration using an email address that is in use by another authentication method and that should solve this. This allows ZAuth to continue to allow duplicate emails per multiple account if Native UNAME is the selected Auth method. It also allows the admin to select Native EMAIL Auth method and then this prevents duplicate emails for ZAuth logins. #4197 would - if desired - need to bypass all validation of duplicate emails and implement some kind of 'secondary authorization' method. To do this, the currently logged in user would proceed through a workflow where they authenticate by their new method (e.g. Facebook) and this creates a new mapping for that method and is linked to the current UID. Then the user could login with either method after that. (#4197 could therefore be postponed to a later release as it would not be incumbent on this issue). |
I agree with you entirely 👍 |
This is a security issue only in special cases when the system has to be really secured. This security level implies that user is not able to choose/edit his username or user is known before registration and registration is manual. There is no way for hacker to not know that an account/username exists when registration is open... even error Login/Registration failed gives, a clue about username existence not to mention that usernames are publically known in news comments etc... In most of cases Zikula is used as an open system (I guess)(when users can register). We could provide an option to harden security "level" and remove information that username/email is registered or not but that is something extra, not default and for consistency it requires that users cannot chose username by themselves. They can provide an email address -> and system will send them an email with information to activate account or that someone tried to use their email address to register an account in case email already exists. User that is providing email is notified only that the email with instruction was sent. |
Expected behavior
If an email address is allready registered another usershould not be able to use the same one. This is also valid even if the user is registering with different authentication methods
Actual behavior
a user (me) is registered with an email via ZAuth. With the same email address I am registered at facebook. If I now register via facebook/oauth it is possible without any problem. I looked into the database and can see both users do have the same email address
Steps to reproduce
see actual behavior
Is it a bug or is it a feature?
The text was updated successfully, but these errors were encountered: