From 0dbe07598215b2b9358164c1fbb726b4ea84b6ae Mon Sep 17 00:00:00 2001 From: Nick Reilingh Date: Mon, 23 Jan 2023 20:07:56 -0500 Subject: [PATCH] Web.pm - use LoadByGecos after user autocreation --- lib/RT/Interface/Web.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/RT/Interface/Web.pm b/lib/RT/Interface/Web.pm index a5a0f6e64d9..39b4d9fca9e 100644 --- a/lib/RT/Interface/Web.pm +++ b/lib/RT/Interface/Web.pm @@ -768,7 +768,7 @@ sub AttemptExternalAuth { my $method = "Set$attribute"; $UserObj->$method( $new_user_info->{$attribute} ) if defined $new_user_info->{$attribute}; } - $HTML::Mason::Commands::session{'CurrentUser'}->Load($user); + $HTML::Mason::Commands::session{'CurrentUser'}->$load_method($user); } else { RT->Logger->error("Couldn't auto-create user '$user' when attempting WebRemoteUser: $msg"); AbortExternalAuth( Error => "UserAutocreateDefaultsOnLogin" );