Commit 8af3d121 authored by Leigh B. Stoller's avatar Leigh B. Stoller

When doing xlogin, set a session attribute name='$user' so that the

logs indicate who made the changes.
parent ccf19c51
......@@ -279,6 +279,9 @@ sub xLogin(@)
DBQueryFatal("replace into session set ".
" sid='$user', authenticated=1, ".
" last_visit=UNIX_TIMESTAMP(now())");
DBQueryFatal("replace into session_attribute set ".
" sid='$user', authenticated=1, name='name', ".
" value='$user'");
print "$hash\n";
return 0;
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