Skip to content
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

Password is too long #1171

Closed
mrgohin opened this issue Dec 7, 2023 · 1 comment
Closed

Password is too long #1171

mrgohin opened this issue Dec 7, 2023 · 1 comment

Comments

@mrgohin
Copy link

mrgohin commented Dec 7, 2023

Steps to Reproduce

  1. Got to https://your-instance/launchpad
  2. Enter an email and password
  3. Make sure you have no idea what is the maximum length of the password field

Expected Behaviour

Choose a password with maximum length of X and use only following character Y

Observed Behaviour

image

Context

Create an admin user

Technical Info

  • URL:
  • Browser Name and version: unimportant
  • Operating System and version (desktop or mobile): unimportant
  • Signed in as: unimportant
  • Project and/or file: unimportant

Analysis

@mrgohin mrgohin changed the title Password is to long Password is too long Dec 7, 2023
@das7pad
Copy link
Member

das7pad commented May 6, 2024

Hello,

Thank you for your feedback. We are using bcrypt for protecting user passwords. As you might have spotted in the code snippet, bcrypt has a limit of 72 character for its input.
We have considered limiting the length of the HTML input field, but ultimately decided against it as the user feedback for entering too long values into fields in not very user friendly in all browsers. Notably, users (and password managers) may "think" that they submitted a very long password, but in fact only a prefix was accepted. The server-side check is a good compromise here.

Greetings,
Jakob

@das7pad das7pad closed this as completed May 6, 2024
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

No branches or pull requests

2 participants