add support for two-factor authentication

todo: add test case

fixes #1
Merge pull request #9 from torbjoernk/add-2-factor-auth

add support for two-factor authentication