diff options
author | gumi <git@gumi.ca> | 2020-03-27 22:46:37 -0400 |
---|---|---|
committer | gumi <git@gumi.ca> | 2020-03-27 22:46:37 -0400 |
commit | 36fa6ec0227a6c2397c2059259b9b2a2a0983c1a (patch) | |
tree | 3deea26bb66b4e87cc551da24c00312cbe988d94 /src/routers/vault/middlewares/identity.js | |
parent | 729da5af57397901f96232f20184b41b49b37fcd (diff) | |
download | api-36fa6ec0227a6c2397c2059259b9b2a2a0983c1a.tar.gz api-36fa6ec0227a6c2397c2059259b9b2a2a0983c1a.tar.bz2 api-36fa6ec0227a6c2397c2059259b9b2a2a0983c1a.tar.xz api-36fa6ec0227a6c2397c2059259b9b2a2a0983c1a.zip |
use sequelize setters for ip addresses
Diffstat (limited to 'src/routers/vault/middlewares/identity.js')
-rw-r--r-- | src/routers/vault/middlewares/identity.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routers/vault/middlewares/identity.js b/src/routers/vault/middlewares/identity.js index 3cae9e5..6f77134 100644 --- a/src/routers/vault/middlewares/identity.js +++ b/src/routers/vault/middlewares/identity.js @@ -81,7 +81,7 @@ const add_identity = async (req, res, next) => { userId: ident.vault, identityId: newIdent.id, action: "ADD", - ip: req.app.locals.sequelize.vault.fn("INET6_ATON", req.ip), + ip: req.ip, }); await Claim.claim_accounts(req, ident.email, ident.vault); |