Fix signup regex#1856
Merged
joanagmaia merged 1 commit intomainfrom Nov 20, 2023
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Changes proposed ✍️
(?=.*[A-Za-z]): This is a positive lookahead, which asserts that at least one alphabetical character (either lowercase or uppercase) must be present somewhere in the string.
(?=.*\d): This is another positive lookahead, which asserts that at least one digit (0-9) must be present somewhere in the string.
(?=.*[^A-Za-z\d]): This is yet another positive lookahead. Here, [^A-Za-z\d] corresponds to any character that is NOT a number or a letter. This assertion ensures that the password includes at least one such symbol.
([^ \t]{8,}): This part defines what exactly we accept within the password. [^ \t] means any character that is NOT a space or a tab. {8,} makes sure that the password string's length is at least 8 characters.
What
🤖[deprecated] Generated by Copilot at dd7247b
Updated password regex in both backend and frontend to enforce a new password policy. The policy aims to improve security by requiring more complex passwords.
🤖[deprecated] Generated by Copilot at dd7247b
Why
How
🤖[deprecated] Generated by Copilot at dd7247b
Checklist ✅
Feature,Improvement, orBug.