* @return object A {@link $USER} object
* @todo Outline auth types and provide code example
*/
-function create_user_record($username, $password, $auth='') {
+function create_user_record($username, $password, $auth='manual') {
global $CFG;
//just in case check text case
}
}
- $newuser->auth = (empty($auth)) ? 'manual' : $auth;
+ $newuser->auth = $auth;
$newuser->username = $username;
// fix for MDL-8480