-
Notifications
You must be signed in to change notification settings - Fork 16
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
passwords greater than 32 characters prompt a "username too long" error #613
Comments
Hi @ldpr, Thank you for reporting. I'm checking it, but I think the problem is not the password. The error message must be wrong. I've tried with these values and works:
|
@ldpr can you share the password you tried? I can't reproduce it on the demo site: |
@ldpr I was able to reproduce it. The limit is 63 chars, not 32. I don't know why 😮 |
The limit is set in the configuration, it's the default value. I didn't remember that even if I was the one who did configuration overhaul 🫨. [auth.password_constraints]
max_password_length = 64
min_password_length = 6 The message is a copy/paste typo. I'm fixing it: #[display(fmt = "Password too short")]
PasswordTooShort,
#[display(fmt = "Password too long")] // <- This was wrong
PasswordTooLong,
#[display(fmt = "Passwords don't match")]
PasswordsDontMatch, |
Fixing error message on torrust/torrust-index#725 ... |
I have also realized min (6) and max (64) values are not valid. I'm also changing that. So passwords with 6 or 64 chars will also be allowed. |
Fixed via torrust/torrust-index#724 |
Tested against the newest alpha running on the demo site.
The text was updated successfully, but these errors were encountered: