Can anyone help me with this:
I need to be able to create user accounts with a php-script (in a commercial environment). Nothing fancy, no remote access. The script executes on the same server as the Moodle installation.
Adding a record to mdl_user is not the problem, when inspecting mdl_user the new record is there. But when trying to login as the newly created user, this won't work (invalid login), no debug messages.
For the password I use md5(), so I guess that's not the issue. Are there any other tables I need to update before a user can login? (I assume that mdl_user_enrolments and mdl_user_preferences come into play later.)
Help very much apprecriated !