We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d499cf5 commit 093af81Copy full SHA for 093af81
wincred/wincred_windows.go
@@ -13,11 +13,12 @@ type Wincred struct{}
13
14
// Add adds new credentials to the windows credentials manager.
15
func (h Wincred) Add(creds *credentials.Credentials) error {
16
+ credsLabels := []byte(credentials.CredsLabel)
17
g := winc.NewGenericCredential(creds.ServerURL)
18
g.UserName = creds.Username
19
g.CredentialBlob = []byte(creds.Secret)
20
g.Persist = winc.PersistLocalMachine
- g.Attributes = []winc.CredentialAttribute{{"label", []byte(credentials.CredsLabel)}}
21
+ g.Attributes = []winc.CredentialAttribute{{Keyword: "label", Value: credsLabels}}
22
23
return g.Write()
24
}
0 commit comments