Disable External Database Enrolment check on Moodle Login

Disable External Database Enrolment check on Moodle Login

by Sam Suresh -
Number of replies: 0
Picture of Plugin developers

I'm currently facing an issue with Moodle 4.1, specifically related to the use of the "External Database" for enrollment tasks. Overnight, the cron job successfully creates courses and enrolls users from the external database.

However, during user login, Moodle appears to perform a lookup in the external enrollment database table, causing issues when the external database is slow or down. This results in login hangs for users.

I am looking for guidance on how to comment out the code responsible for this external database enrollment check during user login, ensuring that the synchronization only occurs during the overnight cron job.

Average of ratings: -