Hi everybody
We have our own moodleplatform and have built an interface to another system which is responsible for user handling. The system is connected via DB connector and creates the users in moodle directly in the database by using the table mdl_user. This works fine so far.
The users should now login via SAML but unfortunatel get the following error:
Argument 1 passed to core\session\manager::login_user() must be an
instance of stdClass, boolean given, called in
[dirroot]/lib/moodlelib.php on line 4685
Logging in for manually created users works fine. Does anybody have an idea what this error means?
My assumption is, that we don't provied all attributes required for user creation.
The following user attributes are provided: username, auth, lastname, firstname, email, lang