1 parent
14632284d7
commit
82ce6e7327
1 file changed
+2
-8
+2
-8
@@ -722,14 +722,8 @@ impl Config {
|
|||||||
&& decode_permanent_password_h1_from_storage(&config.password).is_none()
|
&& decode_permanent_password_h1_from_storage(&config.password).is_none()
|
||||||
{
|
{
|
||||||
let stored = Config::load_::<Config>("");
|
let stored = Config::load_::<Config>("");
|
||||||
if stored.password == config.password {
|
config.password =
|
||||||
config.password = stored.password;
|
keep_encrypted_storage_if_plaintext_unchanged(&config.password, &stored.password);
|
||||||
} else {
|
|
||||||
config.password = keep_encrypted_storage_if_plaintext_unchanged(
|
|
||||||
&config.password,
|
|
||||||
&stored.password,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
let (stored_id, encrypted, _) =
|
let (stored_id, encrypted, _) =
|
||||||
decrypt_str_or_original(&config.enc_id, PASSWORD_ENC_VERSION);
|
decrypt_str_or_original(&config.enc_id, PASSWORD_ENC_VERSION);
|
||||||
|
|||||||
Reference in new issue
Block a user