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;