refs #6434 perf: new field in SignInLog table
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Javier Segarra 2023-11-29 19:34:00 +00:00
parent ed6c0924d7
commit 9176cdb4cb
1 changed files with 1 additions and 0 deletions

View File

@ -136,6 +136,7 @@ module.exports = function(Self) {
const [[key, value]] = Object.entries(Self.userUses(user));
const isOwner = Self.rawSql(`SELECT ? = ? `, [userToken[key], value]);
await Self.app.models.SignInLog.create({
userName: user,
token: token.id,
userFk: userToken.id,
ip: ctx.req.ip,