Update index.js

This commit is contained in:
MaciejkaG 2024-04-07 20:47:05 +02:00
parent f6f5af9758
commit d113ac615c

View File

@ -208,7 +208,7 @@ app.post('/api/login', (req, res) => {
return; 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) { if (result.status === 1 || result.status === -1) {
req.session.userId = result.uid; req.session.userId = result.uid;