#12652·zitadel

[Bug]: "Next" button enabled although password policy is not satisfied during initial password setup

Author: zitadel-knowledge-bot[bot]Created Aug 27, 2026Updated Oct 1, 2026

Environment

Self-hosted

ZITADEL Version

v4.13.1

Database

PostgreSQL

Database Version

15

Impact

During initial password setup after email verification, the "Next" button becomes enabled even when the entered password does not comply with the configured password complexity policy. Clicking "Next" results in a "Code is invalid" error instead of a proper password validation error. This creates a confusing user experience where users are allowed to proceed with non-compliant passwords but then receive an unrelated error message.

Steps to Reproduce

  1. Configure a password complexity policy with specific requirements (e.g., minimum length, uppercase, lowercase, number, symbol requirements).
  2. Create a new user and trigger the initial password setup flow via email verification.
  3. On the password setup screen, enter a password in both fields that matches (same value in both fields) but does NOT meet the configured password complexity requirements.
  4. Observe that the "Next" button becomes enabled despite the password not meeting policy requirements.
  5. Click the "Next" button.
  6. Observe the error message: "Code is invalid" instead of a password complexity validation error.

Expected Behavior

The "Next" button should remain disabled until the entered password meets all configured password complexity policy requirements. Alternatively, if the button is enabled, clicking it should display a clear password validation error message indicating which complexity requirements are not met, rather than showing an unrelated "Code is invalid" error.

OS / Browser

No response

Configuration

No response

Additional Context

The user upgraded from v2.x.x to v3.x.x and then to v4.13.1. A team member (rajatzitdel) confirmed this behavior and identified it as a bug that will be reported internally and tracked via a GitHub issue. A similar but distinct password complexity validation issue exists in the API user creation path (GitHub issue #12318), where has_symbol=false is ignored during user creation but works during password updates.