summaryrefslogtreecommitdiffstats
path: root/relogin.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'relogin.cgi')
-rwxr-xr-xrelogin.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/relogin.cgi b/relogin.cgi
index 566a1df37..e47dbe003 100755
--- a/relogin.cgi
+++ b/relogin.cgi
@@ -125,7 +125,7 @@ elsif ($action eq 'begin-sudo') {
# Get & verify the target user (the user who we will be impersonating)
my $target_user =
- Bugzilla::User->new_from_login($cgi->param('target_login'));
+ new Bugzilla::User({ name => $cgi->param('target_login') });
unless (defined($target_user)
&& $target_user->id
&& $user->can_see_user($target_user))