Open abhijeetviswa opened 3 years ago
@abhijeetviswa what about creating a PR on the moodle for an unenroll API endpoint? Are there any students who use PHP?
@SKrPl Tried that 🥲 https://tracker.moodle.org/browse/MDL-64255
Didn't create the patches they asked for. Hopefully someone will get around to it someday.
This commit introduces a bunch of code to add the ability to unenrol students from courses. The method is hacky, involving creating an HTTP session using a private token, followed by emulating a HTML form submit to do the unenrolment. Unfortunately, Moodle doesn't have a webservice to allow for unenrolment. :(
While the core functionality has been implemented, this PR isn't complete yet. There's a bunch of UI/UX things that need to be cleaned up: