Describe the bug
We are using the two_factor_providers filter to remove certain providers, including Two_Factor_Backup_Codes. However, we are still seeing the following notice, which in this case is misleading. As far as I can tell, there doesn’t appear to be a straightforward way to remove or suppress it.
'To prevent being locked out of your account, consider enabling a backup method like Recovery Codes in case you lose access to your primary authentication method.'
Steps to Reproduce
Use the two_factor_providers filter to remove certain providers. We got the above notice that is misleading and there isn't any easy way to remove it.
Here is an example of the providers we have removed:
add_filter( 'two_factor_providers', function( $providers ) {
unset( $providers['Two_Factor_FIDO_U2F'] );
unset( $providers['Two_Factor_Backup_Codes'] );
unset( $providers['Two_Factor_Dummy'] );
return $providers;
});
Screenshots, screen recording, code snippet
Environment information
No response
Please confirm that you have searched existing issues in this repository.
Yes
Please confirm that you have tested with all plugins deactivated except Two-Factor.
Yes
Describe the bug
We are using the
two_factor_providersfilter to remove certain providers, includingTwo_Factor_Backup_Codes. However, we are still seeing the following notice, which in this case is misleading. As far as I can tell, there doesn’t appear to be a straightforward way to remove or suppress it.'To prevent being locked out of your account, consider enabling a backup method like Recovery Codes in case you lose access to your primary authentication method.'
Steps to Reproduce
Use the
two_factor_providersfilter to remove certain providers. We got the above notice that is misleading and there isn't any easy way to remove it.Here is an example of the providers we have removed:
Screenshots, screen recording, code snippet
Environment information
No response
Please confirm that you have searched existing issues in this repository.
Yes
Please confirm that you have tested with all plugins deactivated except Two-Factor.
Yes