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
- Delete an existing user account from the Craft CMS control panel.
- 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.
- Navigate to Settings > Users > All Users in the control panel.
- Select the re-registered user from the list.
- Click the gear icon (settings wheel) and choose the delete option.
- When prompted with “Are you sure you want to delete this user?”, click OK.
- Observe that the user grid reloads but the user is still present.
- 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
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
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