Manol Posted November 15, 2014 Share Posted November 15, 2014 Hi there. Any hint on how to login to pw with administrator credentials from javascript being it installed in a different server ( or locally ) than processwire? Thanks. Link to comment Share on other sites More sharing options...
pwired Posted November 15, 2014 Share Posted November 15, 2014 Does it have to be javascript ? I use curl for this. Link to comment Share on other sites More sharing options...
Manol Posted November 15, 2014 Author Share Posted November 15, 2014 Actually I'm using angularjs and trying to do an api to use Processwire as a backend service. https://github.com/manviny/ProcesswireToJson Link to comment Share on other sites More sharing options...
LostKobrakai Posted November 15, 2014 Share Posted November 15, 2014 I don't know much about angular. But most api's send some sort of token with the GET or POST data, which autorizes the http-request to the backend your calling. In your case this is your module. If the right token is send you can return all the things you want it to. It could even login itself. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now