Skip to content

Reject whitespace-only auth passwords#4110

Open
ColumbusLabs wants to merge 1 commit into
SecureBananaLabs:mainfrom
ColumbusLabs:codex/auth-password-whitespace-4109
Open

Reject whitespace-only auth passwords#4110
ColumbusLabs wants to merge 1 commit into
SecureBananaLabs:mainfrom
ColumbusLabs:codex/auth-password-whitespace-4109

Conversation

@ColumbusLabs

@ColumbusLabs ColumbusLabs commented Jun 3, 2026

Copy link
Copy Markdown

/claim #743

Closes #4109

Summary

  • Share an auth password schema between registration and login validators.
  • Require passwords to contain at least eight non-whitespace characters.
  • Preserve valid password values without trimming or rewriting the submitted string.

Manual demo (non-UI)

This is an auth validator fix, so the demo is the focused regression test behavior:

  • registration rejects whitespace-only passwords that previously satisfied the raw 8-character minimum
  • login rejects passwords with fewer than eight non-whitespace characters
  • valid passwords are preserved exactly, without trimming or rewriting the submitted string

The focused test file exercises those paths and passes locally with:

node --test apps/api/src/tests/authValidators.test.js

Validation

  • node --test apps/api/src/tests/authValidators.test.js
  • node --test apps/api/src/tests/*.test.js
  • node --check apps/api/src/validators/auth.js
  • node --check apps/api/src/tests/authValidators.test.js
  • git diff --check

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auth validators should reject whitespace-only passwords

1 participant