Skip to content

Commit

Permalink
Bug 1132887: When starting a sudo session, the password is not validated
Browse files Browse the repository at this point in the history
r=dkl a=glob
  • Loading branch information
LpSolit committed Feb 17, 2015
1 parent 9f76caa commit 10aa3f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions relogin.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ elsif ($action eq 'prepare-sudo') {
-httponly => 1,
%args);

# The user ID must not be set when generating the token, because
# that information will not be available when validating it.
local Bugzilla->user->{userid} = 0;
$vars->{'login_request_token'} = issue_hash_token(['login_request', $value]);
}

Expand Down

0 comments on commit 10aa3f0

Please sign in to comment.