Adds optional two-factor authentication support using TOTP, and including backup codes in case of a lost 2FA device.