mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-26 18:58:21 +02:00
All: Fix: Only log master key ID
This commit is contained in:
parent
69f75a1520
commit
5fdd07679e
@ -619,12 +619,10 @@ class Synchronizer {
|
|||||||
if (!hasAutoEnabledEncryption && content.type_ === BaseModel.TYPE_MASTER_KEY && !masterKeysBefore) {
|
if (!hasAutoEnabledEncryption && content.type_ === BaseModel.TYPE_MASTER_KEY && !masterKeysBefore) {
|
||||||
hasAutoEnabledEncryption = true;
|
hasAutoEnabledEncryption = true;
|
||||||
this.logger().info("One master key was downloaded and none was previously available: automatically enabling encryption");
|
this.logger().info("One master key was downloaded and none was previously available: automatically enabling encryption");
|
||||||
this.logger().info("Using master key: ", content);
|
this.logger().info("Using master key: ", content.id);
|
||||||
await this.encryptionService().enableEncryption(content);
|
await this.encryptionService().enableEncryption(content);
|
||||||
await this.encryptionService().loadMasterKeysFromSettings();
|
await this.encryptionService().loadMasterKeysFromSettings();
|
||||||
this.logger().info(
|
this.logger().info("Encryption has been enabled with downloaded master key as active key. However, note that no password was initially supplied. It will need to be provided by user.");
|
||||||
"Encryption has been enabled with downloaded master key as active key. However, note that no password was initially supplied. It will need to be provided by user."
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!!content.encryption_applied) this.dispatch({ type: "SYNC_GOT_ENCRYPTED_ITEM" });
|
if (!!content.encryption_applied) this.dispatch({ type: "SYNC_GOT_ENCRYPTED_ITEM" });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user