originaluko / haveibeenpwned

Identify pwned accounts and passwords via the "Have I been pwned?" (https://haveibeenpwned.com) API.
MIT License
58 stars 18 forks source link

Still getting errors after upgrade. #3

Closed bryceismad1 closed 5 years ago

bryceismad1 commented 5 years ago

I installed the 1.3 version and it still says

Get-PwnedAccount : Forbidden - no user agent has been specified in the request.

when using the function

originaluko commented 5 years ago

Still working for me. Can you check if an old version of the module is still loaded in PowerShell? You may have both loaded side by side.

Get-Module -ListAvailable or just Get-Module HaveIBeenPwned

You can also specify your own User Agent string using -UserAgent

jonatj commented 5 years ago

I was getting the "Forbidden" error when using a custom string. When I used "Chrome 60" it worked.

Ex. Get-PwnedAccount -emailaddress youremail@gmail.com -UserAgent "Chrome 60"

Edit: It worked once, then the next session it didn't. :-(

originaluko commented 5 years ago

Closing this issue as it's based on an old version. The module has since been updated to version 3 with support for authorisation and confirmed working with a user agent. Thanks