Implement two factor authentication

Related to https://github.com/jingweno/gh/issues/84