snazy2000 / SnipeitPS

Powershell API Wrapper for Snipe-it
MIT License
181 stars 47 forks source link

Fix/new snipe it user #301

Closed Frank-Geisler closed 1 year ago

Frank-Geisler commented 1 year ago

Hi!

There were some minor issues in New-SnipeitUser that I fixed:

Have a good one

Frank

PetriAsi commented 1 year ago

Thanks! I have been away for while. I did just quick overview of you PR and it seems to be fine and needed here. Just couple little things that should be changed:

  1. PR should be done against develop branch here, not master
  2. There seems to be some vscode related changes that should be removed from PR
  3. As password length is input validation would it make more sense to do it at param section by adding validation script like: [ValidateScript({ $_.Length -ge 8})] and helpmessage [parameter(mandatory = $true, helpmessage="Password should be at least 8 characters.")] After those changes this is ready for merge.
Frank-Geisler commented 1 year ago

Moved the changes to develop branch