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

[PM-8951] set pin validation to min length of 4 #13312

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

kspearrin
Copy link
Member

@kspearrin kspearrin commented Feb 7, 2025

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-8951

📔 Objective

Users should not be able to set a PIN with a length less than 4.

📸 Screenshots

image

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

Copy link

codecov bot commented Feb 7, 2025

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 35.31%. Comparing base (c1fbaf6) to head (4010ab7).
Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
...s/angular/src/auth/components/set-pin.component.ts 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13312      +/-   ##
==========================================
+ Coverage   35.29%   35.31%   +0.02%     
==========================================
  Files        3124     3128       +4     
  Lines       92483    92600     +117     
  Branches    16818    16826       +8     
==========================================
+ Hits        32638    32702      +64     
- Misses      57388    57438      +50     
- Partials     2457     2460       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kspearrin kspearrin changed the title set pin validation to min length of 4 [PM-8951] set pin validation to min length of 4 Feb 7, 2025
Copy link
Contributor

github-actions bot commented Feb 7, 2025

Logo
Checkmarx One – Scan Summary & Details9aec3a3e-8c33-4249-a75a-0981242cc448

New Issues (4)

Checkmarx found the following issues in this Pull Request

Severity Issue Source File / Package Checkmarx Insight
HIGH CVE-2025-0995 Npm-electron-34.0.0 Vulnerable Package
HIGH CVE-2025-0996 Npm-electron-34.0.0 Vulnerable Package
HIGH CVE-2025-0997 Npm-electron-34.0.0 Vulnerable Package
HIGH CVE-2025-0998 Npm-electron-34.0.0 Vulnerable Package

@kspearrin kspearrin marked this pull request as ready for review February 12, 2025 18:28
@kspearrin kspearrin requested a review from a team as a code owner February 12, 2025 18:28
Copy link
Contributor

@JaredSnider-Bitwarden JaredSnider-Bitwarden left a comment

Choose a reason for hiding this comment

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

Thank you for tackling this! I have a few slight tweaks requested below. Please let me know if I need to clarify anything!

libs/angular/src/auth/components/set-pin.component.ts Outdated Show resolved Hide resolved
@kspearrin
Copy link
Member Author

Thank you for tackling this! I have a few slight tweaks requested below. Please let me know if I need to clarify anything!

Thanks for the feedback. Those suggestions make a lot of sense. Done.

Copy link
Contributor

@JaredSnider-Bitwarden JaredSnider-Bitwarden left a comment

Choose a reason for hiding this comment

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

Thank you! LGTM!

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.

2 participants