aaemnnosttv / wp-cli-login-command

Log in to WordPress with secure passwordless magic links.
https://aaemnnost.tv/wp-cli-commands/login/
MIT License
300 stars 48 forks source link

SSO Failing if URL has Trailing Slash #58

Closed mjwalsh1988 closed 1 year ago

mjwalsh1988 commented 2 years ago

Check for trailing slash first, if exists, set array slice index to -3, if not leave it at -2. This way both endpoint and key exist in both cases.

aaemnnosttv commented 1 year ago

Thanks for the PR! There were some other things that needed to be done as well (such as moving to GitHub Actions as jobs stopped running on Travis and adding tests) so this has been addressed in #63.

Thanks again!