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" );