Skip to content

Edit user saves a whitespace-only password that the create dialog rejects #3904

Closed

Description

@AlexAndBear

Steps to reproduce

  1. Admin settings > Users: edit a user.
  2. Type only spaces into the Password field and save.

Expected

The same validation as in the "Create user" dialog, which rejects a whitespace-only password. An empty field should mean "no change".

Actual

The whitespace-only password is saved (200). The user's old password stops working and the whitespace string logs in.

Cause

EditPanel.vue (onUpdatePassword) does no validation, while CreateUserModal.vue checks password.trim() === ''.

Found during exploratory QA testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions