refs #6434 perf: new field in SignInLog table
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
ed6c0924d7
commit
9176cdb4cb
|
@ -136,6 +136,7 @@ module.exports = function(Self) {
|
||||||
const [[key, value]] = Object.entries(Self.userUses(user));
|
const [[key, value]] = Object.entries(Self.userUses(user));
|
||||||
const isOwner = Self.rawSql(`SELECT ? = ? `, [userToken[key], value]);
|
const isOwner = Self.rawSql(`SELECT ? = ? `, [userToken[key], value]);
|
||||||
await Self.app.models.SignInLog.create({
|
await Self.app.models.SignInLog.create({
|
||||||
|
userName: user,
|
||||||
token: token.id,
|
token: token.id,
|
||||||
userFk: userToken.id,
|
userFk: userToken.id,
|
||||||
ip: ctx.req.ip,
|
ip: ctx.req.ip,
|
||||||
|
|
Loading…
Reference in New Issue