Title: ifwarewp's Replies | WordPress.org

---

# ifwarewp

  [  ](https://wordpress.org/support/users/ifwarewp/)

 *   [Profile](https://wordpress.org/support/users/ifwarewp/)
 *   [Topics Started](https://wordpress.org/support/users/ifwarewp/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ifwarewp/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ifwarewp/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ifwarewp/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ifwarewp/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ifwarewp/favorites/)

 Search replies:

## Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[One Time Login] Trying the ‘Example with cUrl’](https://wordpress.org/support/topic/trying-the-example-with-curl/)
 *  Thread Starter [ifwarewp](https://wordpress.org/support/users/ifwarewp/)
 * (@ifwarewp)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/trying-the-example-with-curl/#post-17198137)
 * Expected “one-time login URLs for any existing user”. User ‘auser’ exists. But
   the cUrl call returns Site’s front page instead of a link to login page. What
   do I miss here, please? It is a dev site to figure out this Plugin. Thank you
   for your time and advice.
 * curl -X POST [http://ifwtrainin3dev.wpenginepowered.com/wp-json/one-time-login/v1/token](http://ifwtrainin3dev.wpenginepowered.com/wp-json/one-time-login/v1/token)-
   H ‘authorization: Basic dGVzdDpQYXNzQWNlZ2kjMj8z’ -H ‘cache-control: no-cache’-
   H ‘Content-Type: application/json’ -d ‘{“user”:”auser”,”count”: 3,”delay-delete”:
   true}’
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[One Time Login] Trying the ‘Example with cUrl’](https://wordpress.org/support/topic/trying-the-example-with-curl/)
 *  Thread Starter [ifwarewp](https://wordpress.org/support/users/ifwarewp/)
 * (@ifwarewp)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/trying-the-example-with-curl/#post-17178699)
 * Once added the ‘Content-Type’ header, response has changed. The user ‘test’ has
   full ‘admin’ permissions. This POST request is posted using same user ‘test’.
   Could this create a ‘loop’?
    -  [‘url’]=”[https://my_domain.com/wp-json/one-time-login/v1/token&#8221](https://my_domain.com/wp-json/one-time-login/v1/token&#8221);
    - [‘body’]='{\n \”delay-delete\”: true,\n \”count\”: 3,\n \”user\”: \”test\”\
      n}’
    - [‘headers’]=table
       *  [‘Content-Type’]=’application/json’
       *  [‘authorization’]=’Basic dA********9z’
 * The authentication header has “test:<password>” encoded in base64.
 * Response:
 * {“code”:”rest_forbidden”,”message”:”Sorry, you are not allowed to do that.”,”
   data”:{“status”:401}}
 * Thank you for looking into this.
    -  This reply was modified 2 years, 7 months ago by [ifwarewp](https://wordpress.org/support/users/ifwarewp/).
    -  This reply was modified 2 years, 7 months ago by [ifwarewp](https://wordpress.org/support/users/ifwarewp/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Magic Login - Passwordless Authentication for WordPress - Login Without Password] How to include users email into login page link?](https://wordpress.org/support/topic/how-to-include-users-email-into-login-page-link/)
 *  Thread Starter [ifwarewp](https://wordpress.org/support/users/ifwarewp/)
 * (@ifwarewp)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/how-to-include-users-email-into-login-page-link/#post-17173828)
 * Done! Thank you!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Magic Login - Passwordless Authentication for WordPress - Login Without Password] How to include users email into login page link?](https://wordpress.org/support/topic/how-to-include-users-email-into-login-page-link/)
 *  Thread Starter [ifwarewp](https://wordpress.org/support/users/ifwarewp/)
 * (@ifwarewp)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/how-to-include-users-email-into-login-page-link/#post-17173244)
 * Hello again 🙂 with good news, this time. Your understanding of the goal is correct
   and it works now. The updated action+function code was placed into the beginning
   of themes functions.php file. Thank you so much for your excellent help!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Magic Login - Passwordless Authentication for WordPress - Login Without Password] How to include users email into login page link?](https://wordpress.org/support/topic/how-to-include-users-email-into-login-page-link/)
 *  Thread Starter [ifwarewp](https://wordpress.org/support/users/ifwarewp/)
 * (@ifwarewp)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/how-to-include-users-email-into-login-page-link/#post-17173014)
 * Hello Mustafa,
 * Your immediate availability and dedication to help are greatly appreciated. Both
   ways, either to add a code snippet to the themes functions.php or alternatively
   to add the file ‘[**pre-filled-email-with-magic-login.php**](https://gist.github.com/mustafauysal/b84ced33737a399bda4bb742113bc851#file-pre-filled-email-with-magic-login-php)‘
   to ../mu-plugins didn’t work for me. Not sure how to proceed… Thank you for your
   help.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Magic Login - Passwordless Authentication for WordPress - Login Without Password] How to include users email into login page link?](https://wordpress.org/support/topic/how-to-include-users-email-into-login-page-link/)
 *  Thread Starter [ifwarewp](https://wordpress.org/support/users/ifwarewp/)
 * (@ifwarewp)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/how-to-include-users-email-into-login-page-link/#post-17170899)
 * Thank you for this detailed and helpful response. Does the file ‘[**pre-filled-email-with-magic-login.php**](https://gist.github.com/mustafauysal/b84ced33737a399bda4bb742113bc851#file-pre-filled-email-with-magic-login-php)‘
   need to be stored into the ../magic-plugin/includes path?

Viewing 6 replies - 1 through 6 (of 6 total)