Skip to content
This repository has been archived by the owner on Oct 3, 2021. It is now read-only.

Commit

Permalink
don't save IP addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
jellz committed May 7, 2019
1 parent e1b136d commit e0f133a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/routes/auth.js
Expand Up @@ -31,6 +31,7 @@ router.get('/callback', async (req, res) => {
}
});
let user = await userResponse.json();
if (!user.email) res.status(400).json({ error: 'Email scope not included' });

if (!await r.table('users').get(user.id).run()) {
await r.table('users').insert({
Expand All @@ -42,7 +43,6 @@ router.get('/callback', async (req, res) => {
discrim: user.discriminator,
flags: [],

ips: [req.cf_ip],
email: user.email,

discordAT: access.access_token,
Expand Down

0 comments on commit e0f133a

Please sign in to comment.