Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no way to change min_password_length #4150

Open
3 of 5 tasks
tamtakoe opened this issue Oct 8, 2024 · 1 comment
Open
3 of 5 tasks

There is no way to change min_password_length #4150

tamtakoe opened this issue Oct 8, 2024 · 1 comment
Labels
bug Something is not working.

Comments

@tamtakoe
Copy link

tamtakoe commented Oct 8, 2024

Preflight checklist

Ory Network Project

No response

Describe the bug

There is no way to change min_password_length to less than 6, because it is hardcoded in internal config.schema.json

The min_password_length should be 0 because it's my responsibility to decide what password I want. There are some cases where a business needs a 1-2-3-4 letter password.

Reproducing the bug

If you set this min_password_length inside kratos.yaml

 methods:
   password:
     enabled: true
     config:
       min_password_length: 3

You get error
selfservice.methods.password.config.min_password_length: 3 must be >= 6 but found 3

Relevant log output

The configuration contains values or keys which are invalid:
prod_kratos.1.1oumfwuv2mhy@ip-1-2-3-4    | selfservice.methods.password.config.min_password_length: 3
prod_kratos.1.1oumfwuv2mhy@ip-1-2-3-4    |

Relevant configuration

No response

Version

1.2.0

On which operating system are you observing this issue?

None

In which environment are you deploying?

None

Additional Context

No response

@tamtakoe tamtakoe added the bug Something is not working. label Oct 8, 2024
@Denish3436
Copy link

Hi @tamtakoe I would like to work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

2 participants