diff options
author | Mathijs van Veluw <[email protected]> | 2024-12-08 21:48:19 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-12-08 21:48:19 +0100 |
commit | c9860af11ccedfa9b347e22652d75b862eeba391 (patch) | |
tree | db5c6c0876758316cb54a66cea612823ad8283e4 /src/db/models/mod.rs | |
parent | d7adce97df5dec9b121f4bee67be78a955247cfb (diff) | |
download | vaultwarden-c9860af11ccedfa9b347e22652d75b862eeba391.tar.gz vaultwarden-c9860af11ccedfa9b347e22652d75b862eeba391.zip |
Fix another sync issue with native clients (#5259)
The `reprompt` value somehow sometimes has a value of `4`.
This isn't a valid value, and doesn't cause issues with other clients, but the native clients are more strict.
This commit fixes this by validating the value before storing and returning.
Signed-off-by: BlackDex <[email protected]>
Diffstat (limited to 'src/db/models/mod.rs')
-rw-r--r-- | src/db/models/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/models/mod.rs b/src/db/models/mod.rs index c336cb1a..43595bee 100644 --- a/src/db/models/mod.rs +++ b/src/db/models/mod.rs @@ -18,7 +18,7 @@ mod user; pub use self::attachment::Attachment; pub use self::auth_request::AuthRequest; -pub use self::cipher::Cipher; +pub use self::cipher::{Cipher, RepromptType}; pub use self::collection::{Collection, CollectionCipher, CollectionUser}; pub use self::device::{Device, DeviceType}; pub use self::emergency_access::{EmergencyAccess, EmergencyAccessStatus, EmergencyAccessType}; |