mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-06-14 23:00:08 +00:00
Add support for password reprompt
Upstream PR: https://github.com/bitwarden/server/pull/1269
This commit is contained in:
parent
e9ee8ac2fa
commit
a9a5706764
11 changed files with 20 additions and 0 deletions
|
@ -199,6 +199,7 @@ pub struct CipherData {
|
|||
Identity: Option<Value>,
|
||||
|
||||
Favorite: Option<bool>,
|
||||
Reprompt: Option<i32>,
|
||||
|
||||
PasswordHistory: Option<Value>,
|
||||
|
||||
|
@ -415,6 +416,7 @@ pub fn update_cipher_from_data(
|
|||
cipher.fields = data.Fields.map(|f| _clean_cipher_data(f).to_string());
|
||||
cipher.data = type_data.to_string();
|
||||
cipher.password_history = data.PasswordHistory.map(|f| f.to_string());
|
||||
cipher.reprompt = data.Reprompt;
|
||||
|
||||
cipher.save(&conn)?;
|
||||
cipher.move_to_folder(data.FolderId, &headers.user.uuid, &conn)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue