When you use Find-PasswordStatePassword I would expext to be able to search for Username, but it seems that it is not possible, if you supply it, it will return everything from a list.
It seems as if you have accidentally omitted Username as a search parameter (Missing when you build the URI string)
Current Behavior
Possible Solution
if ($PSBoundParameters.ContainsKey('Username')) {
$params += "&Username=$Username"
}
I am trying to check if password allready exists before creating new one
I allready have an outstanding Pull request, where I have added some more functionality, I have allready fixed this in my current branch, I can do a pull request as well if you prefer that.
Your Environment
Module version used: 1.1.(1) (Branch that is not merged yet)
Operating System and PowerShell version: Windows 10 ,5.1.14393.0
Expected Behavior
When you use Find-PasswordStatePassword I would expext to be able to search for Username, but it seems that it is not possible, if you supply it, it will return everything from a list.
It seems as if you have accidentally omitted Username as a search parameter (Missing when you build the URI string)
Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
Context
I am trying to check if password allready exists before creating new one
I allready have an outstanding Pull request, where I have added some more functionality, I have allready fixed this in my current branch, I can do a pull request as well if you prefer that.
Your Environment