Upgrade
You can upgrade Two Factor for Statamic using composer - it's as easy as that.
For major versions, you will need to manually increment version numbers as these may include breaking changes and may need some additional changes to your code.
Statamic 5 to Statamic 6 New
Statamic 6 introduces Two Factor as a core feature.
This addon is not needed (and is not compatible) with Statamic 6.
Review the Statamic 6 migration guide for full details.
2.x to 2.2
2.2 introduces role-specific enforcement.
When you upgrade, the default behaviour is that all users have two factor enforced: this is exactly the same as 2.1 and earlier. If you're happy with this, there's nothing for you to do.
If you would like to offer role-specific enforcement, you need to update some configuration: check out the full details.
1.x to 2.x
2.x drops support for Statamic 4.
Update the following dependencies in your site's composer.json
file:
mitydigital/statamic-two-factor
to^2.0