mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-01-16 22:46:27 +03: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
1 changed files with 9 additions and 0 deletions
|
@ -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 a new issue