Mity Docs Mity Docs for Mity Digital
Two Factor for Statamic Documentation

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.

2.x to 2.2 New

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