Running setup when 2-factor is enabled simply tells you "Invalid username or password". If you dig deeper and comment out the rescue statement, you see the actual error which is:
error: POST https://api.github.com/authorizations: 401 Must specify two-factor authentication OTP code.
Github's guide here has some pointers on how to deal with this.
Running setup when 2-factor is enabled simply tells you "Invalid username or password". If you dig deeper and comment out the rescue statement, you see the actual error which is:
Github's guide here has some pointers on how to deal with this.