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
- Configure your project to use passwords
- Try to register a user
- When asked to enter a password, check the API response for the password input (the
max_lengthproperty is missing)
Logs
Configuration
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
Source: teamhanko/hanko