mirror of
https://github.com/gotson/komga.git
synced 2026-01-03 06:16:34 +01:00
add query string to authentication log
This commit is contained in:
parent
cb2778278a
commit
ac8b2d8d75
1 changed files with 5 additions and 3 deletions
|
|
@ -39,14 +39,16 @@ class LoggingBasicAuthFilter(
|
|||
|
||||
data class RequestInfo(
|
||||
val ip: String,
|
||||
val userAgent: String,
|
||||
val userAgent: String?,
|
||||
val method: String,
|
||||
val url: String
|
||||
val url: String,
|
||||
val query: String?
|
||||
)
|
||||
|
||||
fun HttpServletRequest.extractInfo() = RequestInfo(
|
||||
ip = remoteAddr,
|
||||
userAgent = getHeader("User-Agent"),
|
||||
method = method,
|
||||
url = requestURL.toString()
|
||||
url = requestURL.toString(),
|
||||
query = queryString
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue