Skip to content

[BUG] User management module allows an action that causes UTMStack hanging when login #360

@c3s4rfred

Description

@c3s4rfred

Describe the bug
The user management module allows the administrators to create or edit a user without a ROLE defined, this behavior causes the application hangs when this kind of user tries to login.

To Reproduce
Steps to reproduce the behavior:

  1. Login into the application with admin credentials
  2. Go to 'Manage users' from the right menu
  3. Create or edit a user, using CTRL + click unselect all roles and click edit or create button
  4. Validate and activate the user, then try to login using the user.
  5. See the error in console and the application hanging

Expected behavior
Don't allow the user creation or edition without almost one role defined, or if has not a defined role set ROLE_USER by default

Screenshots
image

Environment

  • UTMStack v10.2 RC, can be tested on DEV

Additional context
DEV environment has an additional user already set, can be used for test

Possible solution
Don't allow the user creation or edition without almost one role defined, or if has not a defined role set ROLE_USER by default

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions