fix typos

This commit is contained in:
stremovsky
2020-01-07 12:34:04 +02:00
parent e94bf37738
commit dbbdd4e7c8
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ func (dbobj dbcon) createUserRecord(parsedData userJSON, event *auditEvent) (str
md5Hash := md5.Sum([]byte(encodedStr))
bdoc["md5"] = base64.StdEncoding.EncodeToString(md5Hash[:])
bdoc["token"] = userTOKEN
// the index search field is hashed here, to be not-reversable
// the index search field is hashed here, to be not-reversible
// I use original md5(master_key) as a kind of salt here,
// so no additional configuration field is needed here.
if len(parsedData.loginIdx) > 0 {

View File

@@ -35,7 +35,7 @@ var (
// 2. GDPR stands for data minimalization.
// 3. Do not store what you actually do not NEED.
/*
var interestingHeaders = []string{"x-forwarded", "x-forwarded-for", "x-comming-from", "via",
var interestingHeaders = []string{"x-forwarded", "x-forwarded-for", "x-coming-from", "via",
"forwarded-for", "forwarded", "client-ip", "user-agent", "cookie", "referer"}
func getMeta(r *http.Request) string {