It'd be good to log Stream or MC events when:
- A 2FA provider is enabled/disabled - including the user who changed it (b/c it could be a super admin)
- A backup code is used
- The recovery process is used (details TBD)
- Anything else?
That way we have an audit trail to help if an account is compromised, and have stats around how often recovery is needed, etc.
Related WordPress/two-factor#462, WordPress/two-factor#476
It may be best to add something like do_action( 'two_factor_log', $event ) upstream, and that could be used for those issues above and for this issue. Having a centralized action would let this plugin automatically log new events that are added upstream, but we still conditionally ignore them if we wanted to.
It'd be good to log Stream or MC events when:
That way we have an audit trail to help if an account is compromised, and have stats around how often recovery is needed, etc.
Related WordPress/two-factor#462, WordPress/two-factor#476
It may be best to add something like
do_action( 'two_factor_log', $event )upstream, and that could be used for those issues above and for this issue. Having a centralized action would let this plugin automatically log new events that are added upstream, but we still conditionally ignore them if we wanted to.