mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-23 04:34:15 -04:00
auditLog for impersonation
This commit is contained in:
parent
693e9b5ef1
commit
bf0386024a
@ -760,6 +760,8 @@ router.get('/admin/impersonate/:email', handleErrorAsync(async (req, res) => {
|
||||
email = (await req.db.get(SQL`SELECT email FROM users WHERE usernameNorm = ${normalise(email)}`)).email;
|
||||
}
|
||||
|
||||
await auditLog(req, 'auth/impersonated', { email });
|
||||
|
||||
return res.json({ token: await issueAuthentication(req.db, { email }) });
|
||||
}));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user