Skip to content

Conversation

@markuslewin
Copy link
Contributor

Checks the byte length of the string to determine whether password is too long to bcrypt.hash properly.

Test Plan

  1. Try to create a new user with password 😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀a (character length 37, byte length 73)
  2. Password is too long

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

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

Thank you! Great catch!

@kentcdodds kentcdodds merged commit 03b10d1 into epicweb-dev:main Feb 7, 2025
mohammedzamakhan referenced this pull request in mohammedzamakhan/epic-startup Aug 4, 2025
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