diff options
| author | Adam Soltys <[email protected]> | 2025-05-30 19:30:19 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-05-30 19:30:20 +0000 |
| commit | 34774759b233c1535c74a7f2783ffd40a542ab9d (patch) | |
| tree | c706cd20bc50274c0124fbdc736f090136ff37ce /routes | |
| parent | 567512dd152616667e641f6f0395c2635e1159dd (diff) | |
| download | coinos-server-34774759b233c1535c74a7f2783ffd40a542ab9d.tar.gz coinos-server-34774759b233c1535c74a7f2783ffd40a542ab9d.zip | |
track payments
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/users.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/routes/users.ts b/routes/users.ts index e39b3337..776c2562 100644 --- a/routes/users.ts +++ b/routes/users.ts @@ -304,9 +304,6 @@ export default { try { let { username, password, token: twofa } = req.body; - if (username !== "coinos") - l("logging in", username, req.headers["cf-connecting-ip"]); - username = username.toLowerCase().replace(/\s/g, ""); let user = await getUser(username); @@ -333,8 +330,8 @@ export default { } } - if (username !== "coinos" && username !== "funk" && username !== "btcpos") - l("logged in", username); + if (username !== "coinos") + l("logged in", username, req.headers['cf-connecting-ip']); const payload = { id: user.id }; const token = jwt.sign(payload, config.jwt); |
