• Resolved comunicazion

    (@comunicazion)


    Hello, we’re having trouble disabling this feature for a specific user from their user profile. When we save, it reappears enabled. Is there a way to disable Two-Factor Authentication (2FA) via Email? Is it possible to disable 2FA only for that user, perhaps via wp-config? Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sully

    (@ss88_uk)

    Morning @comunicazion,

    Do you have any of the following set in your wp-config.php file:

    SS88_2FAVE_ENABLE_ALL, SS88_2FAVE_ENABLE_ADMINS, SS88_2FAVE_ENABLE_EDITORS, SS88_2FAVE_ENABLE_CONTRIBUTORS, or SS88_2FAVE_ENABLE_SUBSCRIBERS

    If so, the toggle will not work as the above will override the toggle.

    Could you also check your database after you’ve made a change to a user in wp_usermeta and look for SS88_2FAVE_Enabled? If the value is 1 it means it’s enabled and a value of 0 would mean it’s disabled. If it’s 0 and you’ve disabled it, there could be object cache caching the old result.

    Let me know, thanks!
    Sully

    Thread Starter comunicazion

    (@comunicazion)

    Hi, yes, I had define('SS88_2FAVE_ENABLE_ALL', true); enabled. But of course, if I disable it, all users are disabled. My initial question was whether, once enabled, I can create that specific exception for a user, either from wp-config or manually. I know I can’t do it manually because, as you indicated, define('SS88_2FAVE_ENABLE_ALL', true); takes precedence. Do you have any other suggestions? Thanks for your help.

    Plugin Author Sully

    (@ss88_uk)

    Thanks for responding. At this time the plugin is not able to accommodate that feature however, I do think it would be a good one to add it via wp-config.php. At this time I do not have an estimated date of when this would be released.

    If you are happy with coding, you can use the isEnabled filter: https://ww.wp.xz.cn/plugins/two-factor-2fa-via-email/#can%20i%20override%20the%20isenabled%20function%3F

    That would allow you to code up something to check and disable based on ID however, you would need to comment out SS88_2FAVE_ENABLE_ALL in order for it to work.

    Thanks,
    Sully

    Thread Starter comunicazion

    (@comunicazion)

    Thank you for your support

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.