mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-01-09 15:54:46 +00: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");
|
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;
|
let guard = db.read().await;
|
||||||
|
Loading…
Reference in New Issue
Block a user