It's possible to create a user after clicking Cancel

Description

During regression tests, I noticed that after trying to enter a user with an incorrect email address, this user is saved.

Reproduction steps:

  1. Log in as an administrator.

  2. Go to Administration > Users.

  3. Click "Add User".

  4. Fill in the required fields (e.g. username: test3) and enter too short e-mail address : test@gmail.

  5. Click the "Create User" button.

  6. Click the "Close" button and then "Cancel".

  7. Using the "Filter", search for the user you want to enter earlier (e.g. test3).

Result:

  • The user is on the list, but can't be edited.

Expected result:

  • The new user should not be created.

Environment

None

Assignee

Unassigned

Reporter

Joanna Szymańska

Labels

Epic Link

Components

Priority

Major
Configure