Skip to content

fix(signup): enforce the password policy on create_account - #241

Merged
tranh0anghuan merged 1 commit into
testfrom
fix/signup-password-policy
Sep 28, 2026
Merged

tranh0anghuan merged 1 commit into
testfrom
fix/signup-password-policy

Conversation

@tranh0anghuan

Copy link
Copy Markdown
Contributor

The rules (8+ chars, uppercase, number, symbol) lived only in the signup UI, so a direct call to signup.create_account could set any password. Checked on the trimmed value — the one that is hashed and that login compares — and rejected with {status: "weak_password", missing: [keys]}, keys matching the UI's PW_NEEDS_* locale keys.

The rules (8+ chars, uppercase, number, symbol) lived only in the signup
UI, so a direct call to signup.create_account could set any password.
Checked on the trimmed value — the one that is hashed and that login
compares — and rejected with {status: "weak_password", missing: [keys]},
keys matching the UI's PW_NEEDS_* locale keys.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@tranh0anghuan
tranh0anghuan merged commit f709676 into test Sep 28, 2026
9 checks passed
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
D Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Claude encountered an error after 0s —— View job


I'll analyze this and get back to you.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant