mirror of
https://github.com/MaciejkaG/statki.git
synced 2024-11-30 04:32:54 +01:00
Fixed user agent display
This commit is contained in:
parent
d113ac615c
commit
44fb002ae3
2
index.js
2
index.js
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user