Skip to content

Commit

Permalink
Merge branch 'MDL-57383' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
sarjona committed Mar 23, 2022
2 parents 56c82a8 + ac24d90 commit b46c643
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion admin/tool/uploaduser/classes/process.php
Expand Up @@ -692,7 +692,11 @@ public function process_line(array $line) {
$dologout = false;

if ($this->get_update_type() != UU_UPDATE_NOCHANGES and !$remoteuser) {
if (!empty($user->auth) and $user->auth !== $existinguser->auth) {

// Handle 'auth' column separately, the field can never be missing from a user.
if (!empty($user->auth) && ($user->auth !== $existinguser->auth) &&
($this->get_update_type() != UU_UPDATE_MISSING)) {

$this->upt->track('auth', s($existinguser->auth).'-->'.s($user->auth), 'info', false);
$existinguser->auth = $user->auth;
if (!isset($this->supportedauths[$user->auth])) {
Expand Down

0 comments on commit b46c643

Please sign in to comment.