Added user agent
This commit is contained in:
parent
c7c7c9f215
commit
a2961e05c5
@ -272,6 +272,7 @@ def hkfcD_vote_thanks():
|
||||
return resp
|
||||
else:
|
||||
identity = randomUrlSuffix(8)
|
||||
user_agent = request.headers.get('User-Agent')
|
||||
id_commit = "INSERT INTO motmSessions (sessionID) VALUES ('" + identity + "')"
|
||||
ua_commit = "INSERT INTO motmSessions (userAgent) VALUES ('" + user_agent + "')"
|
||||
sql_write(id_commit)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user