diff --git a/index.js b/index.js index e6e1742..b22031f 100644 --- a/index.js +++ b/index.js @@ -208,7 +208,7 @@ app.post('/api/login', (req, res) => { return; } - auth.startVerification(req.body.email, getIP(req, req.get('user-agent'))).then(async result => { + auth.startVerification(req.body.email, getIP(req), req.get('user-agent')).then(async result => { if (result.status === 1 || result.status === -1) { req.session.userId = result.uid;