[PR #2837] [PM-3273][PM-4679] New owner/admin permission on login #3838

Closed
opened 2025-11-26 23:37:46 -06:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/bitwarden/android/pull/2837

State: closed
Merged: Yes


Type of change

  • Bug fix
  • New feature development
  • Tech debt (refactoring, code cleanup, dependency upgrades, etc)
  • Build/deploy pipeline (DevOps)
  • Other

Objective

When a user has it's privileges elevated to owner/admin, the user has to set a password.

Code changes

Set ForcePasswordResetReason on login, check and launch a modal to set a password if needed on landing page. The user will be always prompted for a password set until the user has set it.
Since we can't get the decryption option until the next login, we have to set the HasMasterPassword property manually in state for the current session.

Screenshots

https://github.com/bitwarden/mobile/assets/4648522/3bd4b352-0879-4373-8da1-533d057a99e6

Before you submit

  • Please check for formatting errors (dotnet format --verify-no-changes) (required)
  • Please add unit tests where it makes sense to do so (encouraged but not required)
  • If this change requires a documentation update - notify the documentation team
  • If this change has particular deployment requirements - notify the DevOps team
**Original Pull Request:** https://github.com/bitwarden/android/pull/2837 **State:** closed **Merged:** Yes --- ## Type of change - [ ] Bug fix - [X] New feature development - [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc) - [ ] Build/deploy pipeline (DevOps) - [ ] Other ## Objective <!--Describe what the purpose of this PR is. For example: what bug you're fixing or what new feature you're adding--> When a user has it's privileges elevated to owner/admin, the user has to set a password. ## Code changes <!--Explain the changes you've made to each file or major component. This should help the reviewer understand your changes--> <!--Also refer to any related changes or PRs in other repositories--> Set `ForcePasswordResetReason` on login, check and launch a modal to set a password if needed on landing page. The user will be always prompted for a password set until the user has set it. Since we can't get the decryption option until the next login, we have to set the `HasMasterPassword` property manually in state for the current session. ## Screenshots <!--Required for any UI changes. Delete if not applicable--> https://github.com/bitwarden/mobile/assets/4648522/3bd4b352-0879-4373-8da1-533d057a99e6 ## Before you submit - Please check for formatting errors (`dotnet format --verify-no-changes`) (required) - Please add **unit tests** where it makes sense to do so (encouraged but not required) - If this change requires a **documentation update** - notify the documentation team - If this change has particular **deployment requirements** - notify the DevOps team
GiteaMirror added the pull-request label 2025-11-26 23:37:46 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#3838