Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the Two_Factor profile actions from non-admin contexts only. #174

Merged
merged 1 commit into from
May 23, 2023

Conversation

dd32
Copy link
Member

@dd32 dd32 commented May 23, 2023

After #153 we've got the Two Factor UI showing up on the bbPress edit user screen, but the WebAuthn plugin doesn't support being displayed there so it doesn't show up.

This PR hides the Two Factor UI on the front-end again, and retains it for wp-admin contexts.

@dd32 dd32 merged commit 2331c8a into trunk May 23, 2023
@dd32 dd32 deleted the hide-2fa-interface-bbpress-edit branch May 23, 2023 06:37
remove_action( 'personal_options_update', array( 'Two_Factor_Core', 'user_two_factor_options_update' ) );
remove_action( 'edit_user_profile_update', array( 'Two_Factor_Core', 'user_two_factor_options_update' ) );
*/
* @todo Temporarily commented so that WebAuthn can be managed via wp-admin. Restore this when our custom WebAuthn UI is ready.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the comment needs to be updated to reflect the new intent:

- * @todo Temporarily commented so that WebAuthn can be managed via wp-admin. Restore this when our custom WebAuthn UI is ready.
+ * @todo Temporarily scoped to the front end, so that WebAuthn can be managed via wp-admin. Remove the conditional when our custom WebAuthn UI is ready, so that the front-end is the only place to manage it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants