refs #6434 feat: improve signIn method #1867

Merged
jsegarra merged 11 commits from 6434-signInLog_improve_test into test 2023-11-30 11:20:58 +00:00
1 changed files with 1 additions and 0 deletions
Showing only changes of commit 9176cdb4cb - Show all commits

View File

@ -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
Review

userName : user

userName : user