Quantcast
Channel: Moodle for mobile
Viewing all articles
Browse latest Browse all 8344

Re: Moodle Mobile gives error

$
0
0
by Daniel Palou.  

Actually, it worked before because the app didn't send any data when checking if the site exists. Let me explain myself.

When a user types a URL in the app, it sends a request to check if the site exists. In previous versions of MoodleMobile we didn't pass any param to this call, so the script immediately rejected the request.

In MOBILE-1144 we decided to send some fake data to this script to be able to use CORS. So now this script checks if the username exists, and that's slower.

You can manually emulate this call:

<YOURMOODLEURL>/login/token.php?username=a&password=b&service=c

You'll notice that if you remove the params then the script immediately rejects the request.

Regards,

Dani


Viewing all articles
Browse latest Browse all 8344

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>