mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-11-17 10:48:18 -07:00
Add database migration to remove stored passwords
uiaarequests can contain plaintext passwords, which were stored on disk
This commit is contained in:
parent
3d25d46dc5
commit
fe8cfe0556
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user