frumbert/wp2moodle-moodle — pull request #9 by dmi3000 (2014-04-24 21:55:11+00:00)
Title: Update login.php - 'Matched user by existing idnumber"

When you want to update a user based on their idnumber, i found that looking them up by their ID AND get_complete_user_data by ID (instead of by username) and then updating their username works, rather than looking them up by ID but then getting their complete data by username.