• You have to manage one account at a time and you can’t even tdo that as an administrator – total waste of time!

Viewing 1 replies (of 1 total)
  • I’m not a developer on this plugin, but found it was pretty easy to enable email-based authentication for all user accounts using the following snippet:

    <?php
    add_filter('two_factor_enabled_providers_for_user', function ($enabled_providers) {
      $required_providers = ['Two_Factor_Email'];
      $merged = array_unique(array_merge($enabled_providers, $required_providers));
      return $merged;
    }); 
    ?>

    Would be really cool if I could adjust for specific user roles with this filter hook, but maybe I’ll find another approach for that.

Viewing 1 replies (of 1 total)
  • The topic ‘Don’t bother’ is closed to new replies.