mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-25 17:25:57 +03:00
[PR #3831] [MERGED] Fix Login With Device without MasterPassword #3350
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#3350
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/3831
Author: @BlackDex
Created: 9/1/2023
Status: ✅ Merged
Merged: 9/2/2023
Merged by: @dani-garcia
Base:
main← Head:fix-3819📝 Commits (2)
d6e0aceFix Login With Device without MasterPasswordd18b793Merge branch 'main' into fix-3819📊 Changes
11 files changed (+53 additions, -12 deletions)
View changed files
➕
migrations/mysql/2023-09-01-170620_update_auth_request_table/down.sql(+0 -0)➕
migrations/mysql/2023-09-01-170620_update_auth_request_table/up.sql(+5 -0)➕
migrations/postgresql/2023-09-01-170620_update_auth_request_table/down.sql(+0 -0)➕
migrations/postgresql/2023-09-01-170620_update_auth_request_table/up.sql(+5 -0)➕
migrations/sqlite/2023-09-01-170620_update_auth_request_table/down.sql(+0 -0)➕
migrations/sqlite/2023-09-01-170620_update_auth_request_table/up.sql(+29 -0)📝
src/api/core/accounts.rs(+2 -2)📝
src/db/models/auth_request.rs(+4 -4)📝
src/db/schemas/mysql/schema.rs(+3 -2)📝
src/db/schemas/postgresql/schema.rs(+3 -2)📝
src/db/schemas/sqlite/schema.rs(+2 -2)📄 Description
It looks like either something changed in the latest v2023.8.x versions, or when using Biometrics to login, but the MasterPasswordHash is an optional value during the Approve action.
This PR makes the MasterPasswordHash an optional value which resolves this issues. Bitwarden works the same way.
I also changed the EncKey to an Option in the database since empty strings as a default value is not nice in databases, better to use
nullin these cases.Fixes #3819
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.