From 44fb002ae37721299d1540182c1f1cc12bdf32ce Mon Sep 17 00:00:00 2001 From: MaciejkaG Date: Sun, 7 Apr 2024 20:52:39 +0200 Subject: [PATCH] Fixed user agent display --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;