crux-bphc / CMS-Android

A custom Moodle app for the students of BITS Pilani, Hyderabad Campus.
MIT License
28 stars 39 forks source link

Add: Option to unenrol from courses #336

Open abhijeetviswa opened 3 years ago

abhijeetviswa commented 3 years ago

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:

SKrPl commented 3 years ago

@abhijeetviswa what about creating a PR on the moodle for an unenroll API endpoint? Are there any students who use PHP?

abhijeetviswa commented 3 years ago

@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.