forked from OCram85/PSCredentialStore
fixes #26
This commit is contained in:
parent
c0b13052b3
commit
1773f1fc06
@ -88,10 +88,10 @@ function Set-CredentialStoreItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (-not($Credential)) {
|
if (-not($Credential)) {
|
||||||
$Creds = Get-Credential -Message $CredentialName
|
$Credential = Get-Credential -Message $CredentialName
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($Creds.UserName) {
|
if ($Credential.UserName) {
|
||||||
if ($CSContent.Type -eq "Shared") {
|
if ($CSContent.Type -eq "Shared") {
|
||||||
$Key = Get-ChallengeFile
|
$Key = Get-ChallengeFile
|
||||||
$encypted = ConvertFrom-SecureString -SecureString $Creds.Password -Key $Key
|
$encypted = ConvertFrom-SecureString -SecureString $Creds.Password -Key $Key
|
||||||
|
Loading…
Reference in New Issue
Block a user