Support two-factor authentication.

Fixes issue #53