diff --git a/src/keytar_win.cc b/src/keytar_win.cc index 09ec2f97..b548fad3 100644 --- a/src/keytar_win.cc +++ b/src/keytar_win.cc @@ -133,7 +133,7 @@ KEYTAR_OP_RESULT SetPassword(const std::string& service, cred.UserName = user_name; cred.CredentialBlobSize = password.size(); cred.CredentialBlob = (LPBYTE)(password.data()); - cred.Persist = CRED_PERSIST_LOCAL_MACHINE; + cred.Persist = CRED_PERSIST_ENTERPRISE; bool result = ::CredWrite(&cred, 0); delete[] target_name;