SQLDBAWithABeard / Functions

Contains useful functions that I use
MIT License
44 stars 22 forks source link

Update Get-PwnedPassword to use anonymous endpoint #2

Closed mattlorimor closed 5 years ago

mattlorimor commented 6 years ago
mattlorimor commented 5 years ago

@SQLDBAWithABeard

Any thoughts on merging this in so that PwnedPasswords can be checked again? Currently, calls to https://haveibeenpwned.com/api/v2/pwnedpassword/ are redirecting to https://haveibeenpwned.com/Error/PageNotFound which, of course, responds with an HTTP 200. The current code path takes that 200 and assumes that it means a password has been pwned when it hasn't. This PR fixes that.