Skip to content

Commit 7bfc0e7

Browse files
committed
Save passwords after a storj storage has been created
1 parent fd3bcea commit 7bfc0e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/duplicacy_storage.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,8 @@ func CreateStorage(preference Preference, resetPassword bool, threads int) (stor
756756
LOG_ERROR("STORAGE_CREATE", "Failed to load the Storj storage at %s: %v", storageURL, err)
757757
return nil
758758
}
759+
SavePassword(preference, "storj_key", apiKey)
760+
SavePassword(preference, "storj_passphrase", passphrase)
759761
return storjStorage
760762
} else if matched[1] == "smb" {
761763
server := matched[3]

0 commit comments

Comments
 (0)