Skip to content

[5.x]: Unable to delete re-registered user #19017

@berrytimmermans

Description

@berrytimmermans

What happened?

Description

When a user account is deleted from the Craft CMS back-end, and that same user subsequently re-registers via the front-end using the same email address, it becomes impossible to delete the newly created account. The delete action appears to succeed (a confirmation dialog is shown and accepted), but the user remains present in the system after the grid reloads.

Steps to reproduce

  1. Delete an existing user account from the Craft CMS control panel.
  2. Have that same user re-register an account via the front-end of the site, using the same email address as the previously deleted account.
  3. Navigate to Settings > Users > All Users in the control panel.
  4. Select the re-registered user from the list.
  5. Click the gear icon (settings wheel) and choose the delete option.
  6. When prompted with “Are you sure you want to delete this user?”, click OK.
  7. Observe that the user grid reloads but the user is still present.
  8. Alternatively, open the user detail page and use the “Delete user” button — the same result occurs.

Expected behavior

After confirming the deletion prompt, the user should be permanently removed from the system. The user grid should reload without the deleted user account.

Actual behavior

After confirming the deletion prompt (“Are you sure you want to delete this user?” → OK), the user grid reloads but the user account remains visible and active. This occurs both via the gear icon in the All Users overview and via the “Delete user” button on the user detail page. The deletion silently fails with no error message displayed.

Craft CMS version

5.10.2

PHP version

8.3.31

Operating system and version

Linux 4.18.0-553.117.1.el8_10.x86_64

Database type and version

MariaDB 10.5.29

Image driver and version

Imagick 3.8.1 (ImageMagick 6.9.13-25)

Installed plugins and versions

  • Craft Commerce: 5.6.5
  • Digital Products: 4.0.3
  • Freeform: 5.15.13
  • Link Vault: 5.0.3
  • Mollie for Craft Commerce: 4.4.1
  • Redactor: 4.2.0
  • Redactor Anchors: 1.5.0

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions