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

Only add SAML button and explanations on login action #242

Conversation

imath
Copy link
Contributor

@imath imath commented Apr 25, 2021

Hi,

I've noticed the extra HTML the plugin injects into the wp-login.php page to explain how to login with SAML or with WordPress is output no matter what the login action. For instance, when you want to get the link to reset your password, here's how the wp-login.php page looks:

lostpassword

I believe it's a bit confusing, because if I arrive there, it's because i want to connect with WordPress but I lost my password. So the extra HTML shouldn't be output. I haven't tested other login actions but I believe the same extra HTML would be output.

This PR suggests to check if the login_form_login action happened before injecting this extra HTML.

@danielbachhuber danielbachhuber added this to the 1.2.2 milestone Apr 26, 2021
@danielbachhuber danielbachhuber self-requested a review April 26, 2021 16:20
Copy link
Contributor

@danielbachhuber danielbachhuber left a comment

Choose a reason for hiding this comment

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

👍 Seems fine to me, thanks!

@danielbachhuber danielbachhuber merged commit 7933dc4 into pantheon-systems:master Apr 26, 2021
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