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

Remove min and max length from password input when using login form #2643

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

SleeplessOne1917
Copy link
Member

Fixes #2381 using @richardARPANET 's suggestion.

Something I noticed working on this is that whitespace is allowed in passwords. This doesn't seem a problem in and of itself, but it's possible to make a password entirely from whitespace. Should this be allowed?

@@ -99,8 +99,10 @@ class PasswordInput extends Component<PasswordInputProps, PasswordInputState> {
onInput={onInput}
value={value}
required
pattern=".{10,60}"
pattern=".+"
Copy link
Member Author

Choose a reason for hiding this comment

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

I changed the pattern since length is all we're checking for and min and max length gives more information to users as to what is wrong than using the pattern.

@dessalines dessalines merged commit 66277e6 into main Jul 30, 2024
2 checks passed
@SleeplessOne1917 SleeplessOne1917 deleted the login-password-min branch July 30, 2024 13:57
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.

[Bug]: New password length requirements breaks login for users
2 participants