1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-05-17 00:53:56 +00:00

Fix Login With Device without MasterPassword

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
`null` in these cases.

Fixes #3819
This commit is contained in:
BlackDex 2023-09-01 21:03:50 +02:00
parent 5ab7010c37
commit d6e0ace192
No known key found for this signature in database
GPG key ID: 58C80A2AA6C765E1
11 changed files with 53 additions and 12 deletions

View file

@ -0,0 +1,5 @@
ALTER TABLE auth_requests
MODIFY master_password_hash TEXT;
ALTER TABLE auth_requests
MODIFY enc_key TEXT;