Skip to content

fix: reject a whitespace-only password when editing a user - #3907

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/edit-user-password-blank
Oct 20, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/edit-user-password-blank

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

  • Whitespace passwords on edit: the Edit user dialog saved a password made only of spaces (which Create user rejects); the account's old password then stopped working and the whitespace string logged in.
  • Fix: the edit password field now uses the same validation as Create user — a whitespace-only value is rejected and disables Save, and an empty field means 'no change' so no passwordProfile is sent.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: EditPanel.spec.ts — whitespace-only rejected and Save disabled; empty field sends no password; a valid password is sent
  • test case 2: browser: whitespace save blocked with no PATCH; display-name-only edit sends no passwordProfile; a valid password persists (PATCH payloads verified)

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear merged commit 0da3284 into main Oct 20, 2026
28 checks passed
@AlexAndBear
AlexAndBear deleted the fix/edit-user-password-blank branch October 20, 2026 11:58
@openclouders openclouders mentioned this pull request Oct 20, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants