2

I am using my rails application to send data to a wordpress site. Basically if a user has wrong password, I am going to end the reverse proxy and redirect the user back to the wordpress site but I want to pass data along. In Rails, I use Net::HTTP to send data to another server:

http://ruby-doc.org/stdlib-1.9.3/libdoc/net/http/rdoc/Net/HTTP.html

Now in WordPress I'm not sure how to receive it.

thanks for response

1 Answer 1

1

I think you're basically recreating what the »JSON API Plugin« already does. It should work hands in hands with your Ruby App without a problem and server all your normal as well as CPT tasks.

2
  • Actually now I am redirecting the user and passing data in query string. And so when it redirects to wordpress page, I want to just add a line of php: if ( isset($_GET['invalid_password']) echo "invalid password"; Is there a place i can put this line of code? Feb 28, 2012 at 19:47
  • The wp-login.php has dozens of hooks - just take a look at it and search for do_action and apply_filters. Then hook into them from your functions.php file (or better from a custom plugin). Anyway: You might be better off, just taking the mentioned plugin.
    – kaiser
    Feb 28, 2012 at 20:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.