Skip to content

Can't set the same email to two users #27626

@PVince81

Description

@PVince81

Steps:

  1. Create two users "user1" and "user2"
  2. Set the same email address to both users as admin

Expected result

Possibly to set to two users

Actual result

Setting it to the second user as admin shows a spinner and never stops.
Also: if setting it through the user's personal page, when opening the link to validate the email address there will be an "Internal Server Error" page.

Additional potential issues (to be tested)

  • if LDAP has two users where both have the same email address (ex: an admin who has two accounts, one as admin, one as regular user but still wishes to receive email to the same address), it is likely to break on sync.
  • if a previous setup already had users with the same email address, migrating to 10.0 will likely break somewhere. (I couldn't test with local users due to this other bug Email address not imported to oc_accounts from oc_preferences on upgrade #27625)

I suggest making the email column non-unique.
@DeepDiver1975 @butonic @jvillafanez

cc @pmaier1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions