Closed sternyz closed 1 year ago
Reviewed this.
Please use the "-Email" switch, rather than "-User" when running the cmdlet. Null value is coming from lack of value in the Email field.
@T0pCyber -- Noting this for further improvements & prompting for entry of the UPN, rather than only relying on switch.
Describe the bug When entering my hibp api key the first time running Get-HawkUserPWNCheck, getting a 'Cannot index into a null array' error
To Reproduce Steps to reproduce the behavior:
Expected behavior Key accepted, user email address run through Get-HawkUserPWNCheck
Screenshots![2023-07-13_14-03-05](https://github.com/T0pCyber/hawk/assets/38505995/5f8e2b42-6220-4ee1-b00d-70bbacf1e157)