Skip to content

SecurePassword - Validate password must be less than or equal to 72 #15708

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

Merged
merged 1 commit into from
Jun 14, 2014

Conversation

akshay-vishnoi
Copy link
Contributor

See #14591, Reason - BCrypt hash function can handle maximum 72 characters.

@akshay-vishnoi
Copy link
Contributor Author

cc: @matthewd

@@ -2,6 +2,8 @@ module ActiveModel
module SecurePassword
extend ActiveSupport::Concern

MAX_PASSWORD_LENGTH_ALLOWED = 72
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you put a comment above this constant explaining why it is necessary?

See rails#14591, Reason - BCrypt hash function can handle maximum 72 characters.
@akshay-vishnoi
Copy link
Contributor Author

Please check the updated code.

chancancode added a commit that referenced this pull request Jun 14, 2014
SecurePassword - Validate password must be less than or equal to 72
@chancancode chancancode merged commit 6fa7726 into rails:master Jun 14, 2014
@akshay-vishnoi
Copy link
Contributor Author

Hey I forgot, does this need CHANGELOG entry?

chancancode added a commit that referenced this pull request Jun 14, 2014
@chancancode
Copy link
Member

No worries, I fixed it for you 😄

@akshay-vishnoi
Copy link
Contributor Author

Thanks 💚 😄

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

Successfully merging this pull request may close these issues.

2 participants