Closed cycomarcooo closed 7 years ago
hi, cyco! That's actually a clever way to check if the page is woocommerce lost password page. Subway should work with WooCommerce lost password page by default, the user just need to add the ID of 'my-accounts' page to the Subway public pages ID.
But I'll add that so that users won't be needing to add the accounts page ID manually, can you pull request?
Thanks!
Hi, you are right about the my-account ID but it allows access to all endpoints (not very critical if the use is not logged-in by the way). I'll create a pull request asap.
@cycomarcooo I'm going to mark this close for the meantime. Just pull request anytime 👍
Thank you!
Woocommerce lost-password endpoint is not whitelisted. Should be useful to add a check like this one inside PageRedirect::index() :