Fixed user agent display

This commit is contained in:
MaciejkaG 2024-04-07 20:52:39 +02:00
parent d113ac615c
commit 44fb002ae3

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;