Skip to content

Fix signup regex#1856

Merged
joanagmaia merged 1 commit intomainfrom
bugfix/password-validation
Nov 20, 2023
Merged

Fix signup regex#1856
joanagmaia merged 1 commit intomainfrom
bugfix/password-validation

Conversation

@joanagmaia
Copy link
Copy Markdown
Contributor

@joanagmaia joanagmaia commented Nov 20, 2023

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

password must change
no spaces, one symbol, please
autumn of old rules

Why

How

🤖[deprecated] Generated by Copilot at dd7247b

  • Update password regex to match new policy (link, link)

Checklist ✅

  • Label appropriately with Feature, Improvement, or Bug.
  • Add screenshots to the PR description for relevant FE changes
  • New backend functionality has been unit-tested.
  • API documentation has been updated (if necessary) (see docs on API documentation).
  • Quality standards are met.

@joanagmaia joanagmaia added the Bug Created by Linear-GitHub Sync label Nov 20, 2023
@joanagmaia joanagmaia self-assigned this Nov 20, 2023
@joanagmaia joanagmaia merged commit f8d9281 into main Nov 20, 2023
@joanagmaia joanagmaia deleted the bugfix/password-validation branch November 20, 2023 10:58
sausage-todd pushed a commit that referenced this pull request Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Created by Linear-GitHub Sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant