-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Incorrect code comment on users-permission register controller. #7481
Comments
Thank you, can you please submit a PR to update this comment. |
Will do. |
Fixed in above PR |
@derrickmehaffy, can u explain please why user cant have more than two times the symbol '$' in his password? |
I'm not aware of that limitation, I would offer a guess to the cause as being the regex we use to validate the password. Can you open a new bug report @borm |
It's being use to detect whether the password has been bcrypted. Overall this feels wonky and inconsistent. Hmmm. Decided to override the controller/service files and use a regex check for bcryptiness |
Describe the bug
Nothing major, this is probably a typo or an outdated code comment:
Link to snippet:
strapi/packages/strapi-plugin-users-permissions/controllers/Auth.js
Line 415 in 331b738
As you can see, the comment says two times, while the error message AND the
isHashed
function say three is the correct amount.This seems to still be in
master
code as of this post.The text was updated successfully, but these errors were encountered: