Moodle login patch