Tweaks to authentication system. Database method now allows other
fields to be specified so that things like email, names etc can be pulled in from external database when new Moodle accounts are created
This commit is contained in:
+1
-1
@@ -1403,7 +1403,7 @@ function create_user_record($username, $password) {
|
||||
|
||||
if ($CFG->auth_update_userinfo and function_exists(auth_get_userinfo)) {
|
||||
if ($newinfo = auth_get_userinfo($username)) {
|
||||
foreach ($newinfo as $key=>$value){
|
||||
foreach ($newinfo as $key => $value){
|
||||
$newuser->$key = $value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user