Restoring two-factor authentication (2FA)