Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    Hi,

    Allowing duplicate email addresses is less involved than allowing duplicate usernames. Email address is a piece of information associated with an account whereas the username is used to actually log into the system.

    The login process would have to be adjusted to deal with duplicate usernames. For a login attempt, would WP keep comparing the password for every instance of the given username until it found which account is being logged into? Or would you be modifying the login form to require both username and email address to log in?

    There’s also the issue of the password reset form, which can take the username. Without adjusting the handling and display of that form, you risk a user not being able to reset for their specific account.

    And there’s also unique author slug generation.

    Which is all to say, there’s a lot involved in allowing duplicate usernames, little of which overlaps with what the plugin currently does. It would warrant being its own plugin, but not one I’m looking to build at this point.

    Cheers!

    Thread Starter Jack

    (@moxie)

    I think you’re right and leave it to people to be creative when choosing their username. I could have added two more custom fields to add first and last name, which I could then display in the sidebar, but I want to keep it as simple as possible.

    Thanks for explaining 🙂

    Jack

    Hope I am not too late, I would like this feature to be added in this plugin so that users can have duplicate usernames with unique email address. As far as login is concerned, below plugin has resolved this issue already.
    https://wordpress.org/plugins/wp-email-login/

    Plugin Author Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    @aamir2007 : Hi,

    As I explained earlier in this thread:

    There’s a lot involved in allowing duplicate usernames, little of which overlaps with what the plugin currently does. It would warrant being its own plugin, but not one I’m looking to build at this point.

    I go into some of the details in that response as well.

    I’m curious: if you’re using another plugin to handle logging in via email rather than username, then why do you need to permit duplicate usernames?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Duplicate username instead of duplicate email address?’ is closed to new replies.