-
Notifications
You must be signed in to change notification settings - Fork 160
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
Can't login when using login_url filter #256
Comments
Thanks for reporting the issue @cameronjonesweb! This seems to be a duplicate of #222. Let me know if that's not the case. |
I don't really think so, but the other ticket seems a bit more ambiguous so it may be. For my specific issue, I believe this could be fixed by adding a new filter for the form action here: https://github.com/georgestephanis/two-factor/blob/master/class.two-factor-core.php#L338. That way, I can filter the action of the form so that logins will work correctly |
@cameronjonesweb That form is already using the filtered login URL: For re-using this form on other pages we would need to remove all the extra login page header and footer HTML. We would also have to make sure that all processing attached to Currently only the |
That's not what I meant at all. The fact that you're using the filtered value is what's causing the issue, when that URL for the form action needs to be wp-login.php to work. I'm suggesting adding another filter so that the form action URL can be fixed without changing the value that |
Thanks for pointing me in the right direction. Looks like WP core has it hard-coded to which makes a lot of sense, so I agree we should hard-code it too. Would you like to open a pull request for this? |
Happy to |
This should also fix #257. |
As discovered by @ccoley, the |
Just confirmed locally that WooCommerce doesn't override the We're safe to hard-code the form destination as |
I've got a site that uses the
login_url
filter to set the login URL to a page with a login form shortcode, in this instance provided by EDD. When attempting to log in, the 2FA screen shows, but when you enter the code it just goes back to the login form. If I edit the source of the 2FA screen form and change the action to go to wp-login.php instead of the custom login form the login works correctlyThe text was updated successfully, but these errors were encountered: