Skip to content

Commit

Permalink
when user's login creates the account, treat the action as account "c…
Browse files Browse the repository at this point in the history
…reation" rather than "login" when applying field mapping
  • Loading branch information
weilai-irl committed Sep 5, 2022
1 parent f6bc858 commit 1067d0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/loginflow/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function get_userinfo($username) {
}

// Call the function in local_o365 to map fields.
$updateduser = \local_o365\feature\usersync\main::apply_configured_fieldmap($userdata, new stdClass(), 'login');
$updateduser = \local_o365\feature\usersync\main::apply_configured_fieldmap($userdata, new stdClass(), $eventtype);
$userinfo = (array)$updateduser;
}
}
Expand Down Expand Up @@ -217,7 +217,7 @@ public function get_userinfo($username) {
}
}

$updateduser = static::apply_configured_fieldmap_from_token($userdata, 'login');
$updateduser = static::apply_configured_fieldmap_from_token($userdata, $eventtype);
$userinfo = (array)$updateduser;
}

Expand Down

0 comments on commit 1067d0e

Please sign in to comment.