PHP, cURL post to login to WordPress

后端 未结 5 1541
北海茫月
北海茫月 2020-11-30 05:24

I am working on a project for a client which needs an automatic login from a link click.

I\'m using a handshake page to do this with the following code:



        
5条回答
  •  心在旅途
    2020-11-30 05:53

    Check the HTML source. It sounds like WP's links may be relative. Instead of making this process even more complicated than it already is, however, I suggest you perform the login, hand the user whatever cookies are required, and redirect them.

    Otherwise you're coding a proxy, piece by piece.

提交回复
热议问题