From d113ac615c16b78c9eea3e79afee98162c9a9bc2 Mon Sep 17 00:00:00 2001 From: MaciejkaG Date: Sun, 7 Apr 2024 20:47:05 +0200 Subject: [PATCH] Update index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 4badd5a..e6e1742 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;