Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds additional messages when dealing with passwords to enhance the UX.
Description
When entering long passwords, users were confronted with a message "Must have capital, small, number & special chars." This would cause confusion with users as the password contained all the needed characters. The long password were rejected because the Regex expression requires passwords to be of a certain length, between 8 and 15 characters in length exactly. However, the end user doesn't know that there are password length limitations and is left to wonder why the password isn't accepted.
With these changes, when registering or changing their password, users will be meet with messages "Password is too short" or "Password is too long" when the password isn't of the appropriate length.
Related Issue
Closes #1170
Motivation and Context
Reviewers
How Has This Been Tested?
Tested manually
Screenshots (if appropriate):
Types of changes
Checklist: