• Resolved wojciechborys

    (@wojciechborys)


    Hey, by default Two Factor is disabled. I would like to enable Two factor authentication by email as default. It’s important, because users can make accounts by themselfs. Is there any simple hook, or something to add that functionality?

    Thank you,

    Wojtek

Viewing 1 replies (of 1 total)
  • Plugin Author Kaspars

    (@kasparsd)

    You could use the newly added two_factor_enabled_providers_for_user filter:

    add_filter(
        'two_factor_enabled_providers_for_user',
        function ( $providers, $user_id ) {
            $providers[] = 'Two_Factor_Email';
    
            return $providers;
        },
        10,
        2
    );
Viewing 1 replies (of 1 total)
  • The topic ‘Make email confirmation mandatory’ is closed to new replies.