refs #6434 feat: improve signIn method #1867
|
@ -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,
|
||||||
jsegarra marked this conversation as resolved
|
|||||||
|
|
Loading…
Reference in New Issue
userName : user