Skip to content

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

Merged
chancancode merged 1 commit into
rails:masterfrom
akshay-vishnoi:secure_password
Jun 14, 2014
Merged

SecurePassword - Validate password must be less than or equal to 72#15708
chancancode merged 1 commit into
rails:masterfrom
akshay-vishnoi:secure_password

Conversation

@akshay-vishnoi

Copy link
Copy Markdown
Contributor

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

@akshay-vishnoi

Copy link
Copy Markdown
Contributor Author

cc: @matthewd

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

No worries, I fixed it for you 😄

@akshay-vishnoi

Copy link
Copy Markdown
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