creating users outside of moodle

Re: creating users outside of moodle

by Eugene Ritter -
Number of replies: 0
Yes, I'm familar with the database plugin. It is very convient and very cool. We're going for a more consistant user interface. We don't want to have a separate interface for retrieving lost passwords or force users to login into admissions before they can log in to moodle ect... That's why we went with an admissions system that is separate from moodle. Once a student is accepted we want to graduate them into moodle. I've just about got the code ready to go on my end any way...

Here is the insertion I'm considering:

$sql = "INSERT INTO mdl_user(auth,
                                     username,
                                     password,
                                     firstname,
                                     lastname,
                                     email
                                     )
                            VALUES('$auth',
                                     '$username',
                                    '$password',
                                    '$first_name',
                                    '$last_name',
                                    '$email'
                                    )";