Changed the log format for an authenticated user

This commit is contained in:
2024-05-20 16:57:22 +01:00
parent efc16225b0
commit edeaa3cf9c
+1 -1
View File
@@ -69,5 +69,5 @@ func Authenticate(w http.ResponseWriter, r *http.Request) {
}
http.SetCookie(w, &cookie)
log.Printf(`| {"user": %s, "pass": %s}`, loginForm.Username, loginForm.Password)
log.Printf(`| {"user": %s, "time": %d}`, loginForm.Username, time.Now().Unix())
}