Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit 680f37c

Browse files
committed
fixed another var name typo
1 parent 1773f1f commit 680f37c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Item/Set-CredentialStoreItem.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ function Set-CredentialStoreItem {
9494
if ($Credential.UserName) {
9595
if ($CSContent.Type -eq "Shared") {
9696
$Key = Get-ChallengeFile
97-
$encypted = ConvertFrom-SecureString -SecureString $Creds.Password -Key $Key
97+
$encypted = ConvertFrom-SecureString -SecureString $Credential.Password -Key $Key
9898
}
9999
else {
100-
$encypted = ConvertFrom-SecureString -SecureString $Creds.Password
100+
$encypted = ConvertFrom-SecureString -SecureString $Credential.Password
101101
}
102102
if (Get-Member -InputObject $CSContent -Name $CredentialName -Membertype Properties) {
103-
$CSContent.$CredentialName.User = $Creds.UserName
103+
$CSContent.$CredentialName.User = $Credential.UserName
104104
$CSContent.$CredentialName.Password = $encypted
105105
$CSContent.$CredentialName.Creation = $CurrentDate
106106
ConvertTo-Json -InputObject $CSContent | Out-File -FilePath $Path

0 commit comments

Comments
 (0)