Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2361

Webservice-Login doesn't enrol users

$
0
0
by Patrick Witter.  

Good day. My issue is that when I use the 

<moodlesite>/login/token.php?service=moodle_mobile_app&moodlewsrestformat=json&username=$username&password=$password

to log in my user. My user's enrolled courses (they are auto-enrolled) are not displayed within my mobile app when  I call

webservice/rest/server.php?wsfunction=core_enrol_get_users_courses&moodlewsrestformat=json

(All calls are done correctly)

The courses list is empty. Only when the user logins into the Actual Website then they are auto-enrolled

Why is this happening does anyone have a solution

 




Viewing all articles
Browse latest Browse all 2361

Trending Articles



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