Add database migration to remove stored passwords

uiaarequests can contain plaintext passwords, which were stored on disk
This commit is contained in:
Moritz Bitsch 2021-12-14 17:55:28 +01:00
parent 3d25d46dc5
commit fe8cfe0556

View file

@ -754,6 +754,15 @@ impl Database {
println!("Migration: 9 -> 10 finished");
}
if db.globals.database_version()? < 11 {
db._db
.open_tree("userdevicesessionid_uiaarequest")?
.clear()?;
db.globals.bump_database_version(11)?;
println!("Migration: 10 -> 11 finished");
}
}
let guard = db.read().await;