Skip to content

Conversation

@Patrick-Pimentel-Bitwarden
Copy link
Contributor

@Patrick-Pimentel-Bitwarden Patrick-Pimentel-Bitwarden commented Jan 15, 2026

Note

This was accidentally merged prior to being QA'd so this is the repush of that work. It was already approved here: #6854

🎟️ Tracking

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

📔 Objective

  1. Update register to use new data types
  2. Added comments so that future removal of old properties is clear
  3. Made accounts controller not permit nullish ambiguity
  4. Added tests to demonstrate payloads result in same outcomes for the user model

📸 Screenshots

Screen.Recording.2025-12-11.at.5.21.28.PM.mov

⏰ 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

…d more comments and fixed up some long lines.
…tModel.cs

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
…t additions to make sure properties that were once required are still required.
…ted tests and added comments for the future.
…d new checks for master password authentication data.
…fled around validation checks to the request model instead of the controller.
…Added comments to clarify how these data types should be used.
…Fixed error in register finish model validation.
…erted throws to validation results and updated tests.
…d more validation around the master password kdf.
…fled around validation a little. In a great place now.
…ed validation tests and ToUser no longer throws bad request.
…ressed more feedback. No longer overriding the master password hash.
@codecov
Copy link

codecov bot commented Jan 15, 2026

Codecov Report

❌ Patch coverage is 67.59777% with 58 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.07%. Comparing base (b7923f5) to head (d9b53c4).
⚠️ Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
...Api/Request/Accounts/RegisterFinishRequestModel.cs 60.81% 46 Missing and 12 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6855      +/-   ##
==========================================
+ Coverage   56.13%   60.07%   +3.94%     
==========================================
  Files        1974     1974              
  Lines       87195    87346     +151     
  Branches     7762     7787      +25     
==========================================
+ Hits        48948    52476    +3528     
+ Misses      36435    32958    -3477     
- Partials     1812     1912     +100     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 15, 2026

Logo
Checkmarx One – Scan Summary & Detailsafc8972a-3e0d-4c18-b6a2-5e25f9609327

Great job! No new security vulnerabilities introduced in this pull request

Copy link
Contributor

@mzieniukbw mzieniukbw left a comment

Choose a reason for hiding this comment

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

LGTM from KM side

@Patrick-Pimentel-Bitwarden Patrick-Pimentel-Bitwarden merged commit c52f2e0 into main Feb 4, 2026
51 checks passed
@Patrick-Pimentel-Bitwarden Patrick-Pimentel-Bitwarden deleted the auth/pm-27084/register-accepts-new-data-types-repush branch February 4, 2026 15:04
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.

4 participants