Manol Posted November 15, 2014 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.
pwired Posted November 15, 2014 Posted November 15, 2014 Does it have to be javascript ? I use curl for this.
Manol Posted November 15, 2014 Author 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
LostKobrakai Posted November 15, 2014 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
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