Skip to content

Commit 1c295f7

Browse files
author
Vincent Demeester
authored
Merge pull request #115 from n4ss/fix-appveyor
Fix Windows CI
2 parents d499cf5 + 093af81 commit 1c295f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wincred/wincred_windows.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ type Wincred struct{}
1313

1414
// Add adds new credentials to the windows credentials manager.
1515
func (h Wincred) Add(creds *credentials.Credentials) error {
16+
credsLabels := []byte(credentials.CredsLabel)
1617
g := winc.NewGenericCredential(creds.ServerURL)
1718
g.UserName = creds.Username
1819
g.CredentialBlob = []byte(creds.Secret)
1920
g.Persist = winc.PersistLocalMachine
20-
g.Attributes = []winc.CredentialAttribute{{"label", []byte(credentials.CredsLabel)}}
21+
g.Attributes = []winc.CredentialAttribute{{Keyword: "label", Value: credsLabels}}
2122

2223
return g.Write()
2324
}

0 commit comments

Comments
 (0)