Permalink
Browse files

Also set default language on new user created by external authentication

  • Loading branch information...
1 parent 177e50e commit 57243ffe025c6927120fb370010c53d8adf55daf moodler committed Oct 18, 2002
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/moodlelib.php
View
@@ -1341,6 +1341,7 @@ function create_user_record($username, $password) {
$newuser->username = $username;
$newuser->password = md5($password);
+ $newuser->lang = $CFG->lang
$newuser->confirmed = 1;
$newuser->lastIP = $REMOTE_ADDR;
$newuser->timemodified = time();

0 comments on commit 57243ff

Please sign in to comment.