#2968·hanko

Missing max_length property on credential_usage.register_password

Author: FreddyDevelopCreated Sep 28, 2026Updated Sep 29, 2026
Labelsbug

Checklist

  • I could not find a solution in the existing issues or docs.
  • I agree to follow this project's Code of Conduct.

Describe the bug

When the project is configured to accept passwords on registration, the max_length property from the FlowAPI is not set. https://github.com/teamhanko/hanko/blob/ad0053b1ce099049dff5e38320b6187a89855dd9/backend/flow_api/flow/credential_onboarding/action_register_password.go#L27-L29

On all other inputs where a password input is used, the max_length is set, e.g. https://github.com/teamhanko/hanko/blob/ad0053b1ce099049dff5e38320b6187a89855dd9/backend/flow_api/flow/profile/action_password_create.go#L38-L41

This does not have a big impact, as the backend still checks the limit when hashing the password.

Reproducing the bug

  1. Configure your project to use passwords
  2. Try to register a user
  3. When asked to enter a password, check the API response for the password input (the max_length property is missing)

Logs

bash

Configuration

yaml

Hanko Version

v3.0.4

OS Hanko Backend

None

OS Version Hanko Backend

No response

OS

None

OS Version

No response

Browser Version

No response

Environment

None

Additional Context

No response