Commit c473640f authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 1132887: When starting a sudo session, the password is not validated

r=dkl a=glob
parent b4c5ed1a
......@@ -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]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment