git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d12bd9
)
login: log authenticated user in apache note
author
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 4 Oct 2017 22:24:38 +0000
(
00:24
+0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 4 Oct 2017 22:26:32 +0000
(
00:26
+0200)
Allows user names to be logged instead of %u using LogFormat "%{user}n".
auth.inc.php
patch
|
blob
|
history
diff --git
a/auth.inc.php
b/auth.inc.php
index e849da9b997957c7fc81a2cfb2266f86baeb2230..ef80ecdab5533200649183c81cc618c554eea2d2 100644
(file)
--- a/
auth.inc.php
+++ b/
auth.inc.php
@@
-21,6
+21,8
@@
function login($inuser, $inpass = NULL)
if ($inauth !== $authhash) return;
}
+ if (function_exists('apache_note')) apache_note('user', $inuser);
+
return [
'name' => $inuser,
'admin' => !empty($inuser) && strtolower($inuser) != 'lid',