Added user agent to access log.
This commit is contained in:
parent
59ebb94af8
commit
29a474f471
|
@ -181,6 +181,8 @@ export async function verifyKey(userId, key, req) {
|
||||||
userId,
|
userId,
|
||||||
identifier: storedKey.identifier,
|
identifier: storedKey.identifier,
|
||||||
ip: req.userIp,
|
ip: req.userIp,
|
||||||
|
path: req.path,
|
||||||
|
userAgent: req.headers['user-agent'],
|
||||||
});
|
});
|
||||||
|
|
||||||
knex('users_keys')
|
knex('users_keys')
|
||||||
|
|
Loading…
Reference in New Issue