kratos
kratos copied to clipboard
"Too similar to identifier" password error has wrong id
Preflight checklist
- [X] I could not find a solution in the existing issues, docs, nor discussions.
- [X] I agree to follow this project's Code of Conduct.
- [X] I have read and am following this repository's Contribution Guidelines.
- [ ] I have joined the Ory Community Slack.
- [ ] I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
No response
Describe the bug
When registering with a password which is too similar to the identifier, I get a UI error message back with code 4000005
. However, the documentation suggests that this should be 4000031
. This makes it difficult to discriminate the errors programatically.
Reproducing the bug
Register with a password that is too similar and observe the error message.
Relevant log output
No response
Relevant configuration
No response
Version
v1.0.0
On which operating system are you observing this issue?
None
In which environment are you deploying?
None
Additional Context
No response
This unfortunately also happens with other password errors (password too short, password found in data breaches, ...)