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