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

improve New User password validation #8176

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

michaelchadwick
Copy link
Contributor

Fixes ilios/ilios#4303

Adds a 5-character length validation to new passwords. Potential addition to this PR would be to carry over the password strength logic from <UserProfileBio>. However, to reduce duplication, maybe it should be refactored to a service?

@michaelchadwick michaelchadwick force-pushed the frontend-4303-strength-indicator-new-passwords branch from 8f98dd9 to c16cdc5 Compare October 10, 2024 20:41
@michaelchadwick michaelchadwick force-pushed the frontend-4303-strength-indicator-new-passwords branch from b5e4101 to 5290c6c Compare November 7, 2024 19:30
@michaelchadwick michaelchadwick force-pushed the frontend-4303-strength-indicator-new-passwords branch from 5290c6c to 5c79845 Compare November 8, 2024 18:15
{{on "keyup" this.keyboard}}
data-test-password-input
/>
{{#if (this.hasErrorForPassword)}}
Copy link
Member

@stopfstedt stopfstedt Nov 8, 2024

Choose a reason for hiding this comment

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

Suggested change
{{#if (this.hasErrorForPassword)}}
{{#if this.hasErrorForPassword}}

Copy link
Contributor Author

@michaelchadwick michaelchadwick Nov 12, 2024

Choose a reason for hiding this comment

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

This worked to fix the actual app, but tests still don't show the error message :-/ (notice no red error message for the password field)

Screenshot 2024-11-12 at 11 09 57 AM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@stopfstedt OK, so the error message appears in the Integration test for PasswordValidator, but when it's used on the NewUser component, it does not. Seems it's being swallowed when trying to move upwards, but not sure how to fix.

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.

Form Based Auth on Demo User Password Strength Tool on Initial User Entry is Missing
2 participants