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'.
This commit is contained in:
Gilbert Chen
2020-05-10 20:22:49 -04:00
parent 6ca8b8dff0
commit 9c3122b814

View File

@@ -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]