You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When making a new account, the criteria for the password is not written anywhere. When pasting a longer than 64 characters password into the field, it does not display that it's too long. The registration succeeds, but when trying to log in with it, it displays "The supplied password is too long."
ElkArte info
Are you sure this is a core Elkarte problem and not caused by any addon you are using? Yes
What ElkArte version are you using? ElkArte 1.1.9
When did the issue start?
What version of PHP are you running?
MySQL or PostgreSQL and what version?
To Reproduce
Steps to reproduce the behavior:
Go to register page
Fill out registration data, and paste a password longer than 64 character
Click on Register
Try to log in
See "The supplied password is too long."
Expected behavior
That the register page has some text that the password has to be at most 64 characters long, and when someone uses a longer password, it warns them again, instead of accepting it.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here such as Webserver version, Database type & version, etc.
The text was updated successfully, but these errors were encountered:
Perform the length check and provide the feedback that the password is to long. This needs to be done during registration, and profile (when they change passwords). There would be both a JS check and then a server validation as well. Unfortunately there is not a one file fix here and a two language strings need to be introduced.
Accept the long password, as much as the form will allow in length and do a simple truncate at 64characters with no feedback. The system would simply use the first 64 characters for all the crypt functions. This would probably only affect a couple of files.
The second option might be what is happening right now. At least the registration was accepted, but I didn't confirm that the password was just the truncated original, instead made a new one.
But I would prefer the first option, that is used everywhere else, and would make less of a surprise, than the first, when the registration is successful, but with a different password, than was originally supplied.
Spuds
added a commit
to Spuds/Elkarte
that referenced
this issue
Apr 25, 2024
Describe the bug
When making a new account, the criteria for the password is not written anywhere. When pasting a longer than 64 characters password into the field, it does not display that it's too long. The registration succeeds, but when trying to log in with it, it displays "The supplied password is too long."
ElkArte info
To Reproduce
Steps to reproduce the behavior:
Expected behavior
That the register page has some text that the password has to be at most 64 characters long, and when someone uses a longer password, it warns them again, instead of accepting it.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here such as Webserver version, Database type & version, etc.
The text was updated successfully, but these errors were encountered: