Kami/node-yubico — pull request #2 by corp186 (2012-10-31 09:43:10+00:00)
Title: Fixes for v0.8 and bad password handling

The current code does not work on the latest stable node release. The first commit in this pull request fixes the issue by replacing deprecated http calls with their recommended replacements.

The second change modifies behavior when the password does not verify. This is not an error. When integrating into libraries like node-seq, the difference between an error and an invalid password is important. We only want to "catch" real errors that signify a service issue, and handle invalid passwords through checks of the non-error result value.