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

Fix VIP Go MFA screen #689

Merged
merged 3 commits into from
May 29, 2019
Merged

Fix VIP Go MFA screen #689

merged 3 commits into from
May 29, 2019

Conversation

joshcanhelp
Copy link
Contributor

@joshcanhelp joshcanhelp commented May 28, 2019

Changes

Add a query var during Auth0 login to indicate the status of the process globally. This allows for the VIP MFA form to show instead of a redirect (ULP) or Auth0 form showing (embedded). Also switches all uses of WP_Auth0_Options::Instance()->can_show_wp_login_form() to wp_auth0_can_show_wp_login_form().

References

Closes #687

Testing

  • This change adds unit test coverage
  • This change has been tested on WP 5.2.1

Checklist

  • All existing and new tests complete without errors
  • All code quality tools/guidelines in the Contribution guide have been run/followed
  • All active GitHub CI checks have passed

@joshcanhelp joshcanhelp added this to the 3.11.0 milestone May 28, 2019
@joshcanhelp joshcanhelp marked this pull request as ready for review May 28, 2019 18:08
@joshcanhelp joshcanhelp requested a review from a team May 28, 2019 18:08
@joshcanhelp joshcanhelp changed the title Fix vip go mfa Fix VIP Go MFA screen May 28, 2019
@lbalmaceda lbalmaceda requested review from lbalmaceda and removed request for lbalmaceda May 28, 2019 20:09
@lbalmaceda lbalmaceda self-assigned this May 28, 2019
@@ -31,7 +31,10 @@ function wp_auth0_get_option( $key, $default = null ) {
function wp_auth0_is_current_login_action( array $actions ) {

// Not on wp-login.php.
if ( ! isset( $GLOBALS['pagenow'] ) || 'wp-login.php' !== $GLOBALS['pagenow'] ) {
if (
( isset( $GLOBALS['pagenow'] ) && 'wp-login.php' !== $GLOBALS['pagenow'] ) &&
Copy link
Contributor

Choose a reason for hiding this comment

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

no longer an OR, is this desired?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is desired. Need to either have that page set to wp-login.php or that function. If the page has the function, it will not be the wp-login.php pagenow

@joshcanhelp joshcanhelp merged commit 9cef304 into master May 29, 2019
@joshcanhelp joshcanhelp deleted the fix-vip-go-mfa branch May 29, 2019 16:13
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WordPress.com VIP Go MFA incompatibility
2 participants