Skip to content

[5.x]: Creating users with same email address #17478

Open
@kevinmu17

Description

@kevinmu17

What happened?

Description

You can add multiple users with the same email address. This creates various problems when having the config useEmailAsUsername. It is semi related to an earlier problem #15758 that has been fixed, but only when removing one of the activated users...

Steps to reproduce

  1. create 2 users with the same email adres and activate 1 of them

Expected behavior

Error handling when trying to create a second user with the same email

Actual behavior

Let's me create infinite users with a same email adres

Craft CMS version

Craft Pro 5.7.10

PHP version

8.4.7

Operating system and version

Linux 4.18.0-553.54.1.el8_10.x86_64

Database type and version

MySQL 8.0.42

Image driver and version

Imagick 3.8.0 (ImageMagick 7.1.1-43)

Installed plugins and versions

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions