From 9c3122b814b88de3ec66211ab15b0c8f7d49c065 Mon Sep 17 00:00:00 2001 From: Gilbert Chen Date: Sun, 10 May 2020 20:22:49 -0400 Subject: [PATCH] Fixed a bug causing the OneDrive Business token file path to be not saved The file path was saved under the name `one_token` in Keychain/keyring, rather than the correct name 'odb_token'. --- src/duplicacy_storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duplicacy_storage.go b/src/duplicacy_storage.go index 8f0f115..33ed6c4 100644 --- a/src/duplicacy_storage.go +++ b/src/duplicacy_storage.go @@ -652,7 +652,7 @@ func CreateStorage(preference Preference, resetPassword bool, threads int) (stor LOG_ERROR("STORAGE_CREATE", "Failed to load the OneDrive storage at %s: %v", storageURL, err) return nil } - SavePassword(preference, "one_token", tokenFile) + SavePassword(preference, matched[1] + "_token", tokenFile) return oneDriveStorage } else if matched[1] == "hubic" { storagePath := matched[3] + matched[4]