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

additional characters to be accepted for password #3935

Merged
merged 4 commits into from
Mar 8, 2024

Conversation

seagivens
Copy link
Contributor

@seagivens seagivens commented Nov 9, 2023

Checklist:

  • I have performed a self-review of my own code,
  • I have commented my code, particularly in hard-to-understand areas,
  • I have made corresponding changes to the documentation,
  • I have added tests that prove my fix is effective or that my feature works,
  • New and existing unit tests pass locally with my changes ("bundle exec rake"),
  • Title include "WIP" if work is in progress.

Resolves #3789

Description

expanded the list of special characters that are accepted to satisfy the password strength requirements, as described in Bug #3789

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

added new unit tests

@dorner
Copy link
Collaborator

dorner commented Nov 10, 2023

@seagivens lint is failing - can you please fix? Otherwise looks good!

Copy link
Collaborator

@awwaiid awwaiid left a comment

Choose a reason for hiding this comment

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

In addition to the lint, I spotted a small bug.

app/models/user.rb Outdated Show resolved Hide resolved
spec/models/user_spec.rb Outdated Show resolved Hide resolved
seagivens and others added 2 commits November 15, 2023 12:14
Co-authored-by: Brock Wilcox <awwaiid@thelackthereof.org>
@cielf cielf requested a review from awwaiid November 19, 2023 14:38
@@ -87,7 +87,7 @@ def formatted_email
end

def password_complexity
return if password.blank? || password =~ /(?=.*?[#?!@$%^&*-])/
return if password.blank? || password =~ /(?=.*?[#?!@$%^&*\-;,.()=+|:])/
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Can create a password with only (and also one) special character/s.

@dorner
Copy link
Collaborator

dorner commented Mar 8, 2024

Very very delayed but I think this is good to merge! This slipped between the cracks.

@dorner dorner dismissed awwaiid’s stale review March 8, 2024 21:47

handled by Daniel

@dorner dorner merged commit 0fab539 into rubyforgood:main Mar 8, 2024
19 checks passed
Copy link
Contributor

@seagivens: Your PR additional characters to be accepted for password is part of today's Human Essentials production release: 2024.03.17.
Thank you very much for your contribution!

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]: Password complexity requirements unclear
4 participants