Skip to content

Commit

Permalink
Merge branch 'wip-106844-m402' into MOODLE_402_STABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
weilai-irl committed Oct 8, 2024
2 parents d8ed702 + dec5dba commit d14cda4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/loginflow/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function get_userinfo($username) {
if (auth_oidc_is_local_365_installed()) {
// Check if multi tenants is enabled. User from additional tenants can only sync fields from token.
$userfromadditionaltenant = false;
$hostingtenantid = get_config('local_o365', 'microsofttenantid');
$hostingtenantid = get_config('local_o365', 'entratenantid');
$token = jwt::instance_from_encoded($tokenrec->token);
if ($token->claim('tid') != $hostingtenantid) {
$userfromadditionaltenant = true;
Expand Down

0 comments on commit d14cda4

Please sign in to comment.