MDL-9191 fix for potential incorrect use of get_auth_plugin

This commit is contained in:
skodak
2007-04-04 09:18:24 +00:00
parent db9b5fc35c
commit 78fdca9618
+2 -2
View File
@@ -2451,7 +2451,7 @@ function get_user_fieldnames() {
* @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
@@ -2472,7 +2472,7 @@ function create_user_record($username, $password, $auth='') {
}
}
$newuser->auth = (empty($auth)) ? 'manual' : $auth;
$newuser->auth = $auth;
$newuser->username = $username;
// fix for MDL-8480