8000 PM-11469: Hide master password text field if account does not have MP. by ezimet-livefront · Pull Request #1169 · bitwarden/ios · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PM-11469: Hide master password text field if account does not have MP. #1169

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

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

ezimet-livefront
Copy link
Collaborator

🎟️ Tracking

This update ensures that the master password and PIN text fields are not displayed if the user has not set up a master password or PIN.

📔 Objective

📸 Screenshots

⏰ 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

8000
Copy link
codecov bot commented Nov 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.43%. Comparing base (8293f41) to head (11007ef).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1169      +/-   ##
==========================================
+ Coverage   89.39%   89.43%   +0.04%     
==========================================
  Files         688      688              
  Lines       43798    43812      +14     
==========================================
+ Hits        39152    39184      +32     
+ Misses       4646     4628      -18     

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

Copy link
Contributor
github-actions bot commented Nov 26, 2024

Logo
Checkmarx One – Scan Summary & Detailsba1d2d6d-3479-49f5-b413-2f005c30b05a

No New Or Fixed Issues Found

Copy link
Member
@fedemkr fedemkr left a comment

Choose a reason for hiding this comment

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

LGTM, just one test missing.

let hasMasterPassword = try await services.authRepository.hasMasterPassword()
state.shouldShowPasswordOrPinFields = hasMasterPassword || state.unlockMethod == .pin
} catch {
services.errorReporter.log(error: error)
Copy link
Member

Choose a reason for hiding this comment

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

⛏️ Could a test be added for when services.authRepository.hasMasterPassword() throws?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah I can add that, and I will also make sure to do

state.shouldShowPasswordOrPinFields =  state.unlockMethod == .pin

in catch block.

@ezimet-livefront ezimet-livefront merged commit 092d092 into main Nov 27, 2024
9 checks passed
@ezimet-livefront ezimet-livefront deleted the PM-11469/unlock-vault branch November 27, 2024 16:56
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
0