Added user agent to access log.
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user