netrunner icon indicating copy to clipboard operation
netrunner copied to clipboard

Registering accounts doesn't check for e-mail uniqueness

Open chokh1443 opened this issue 10 years ago • 3 comments

Today, I accidentally find out, I can sign up to jinteki.net for the same email address with already existed.

I've never used coffee script before, however as I suppose 262~286 line on server.coffee is not checking the unique email address. it seems not a unique set on database neither.

chokh1443 avatar Dec 25 '15 19:12 chokh1443

What are the actual negative effects of that?

Merlin8000 avatar Dec 26 '15 16:12 Merlin8000

when I forgot whether I joined for not. ... if user res.send {message: 'Username taken'}, 422 else ....(add from) db.collection('users').findOne email: req.body.email, (err, email) -> if email res.send {message: 'email already registered'}, 422 else ...(add to) email = req.body.email.trim().toLowerCase() req.body.emailhash = crypto.createHash('md5').update(email).digest('hex') req.body.registrationDate = new Date() ... maybe works for it

chokh1443 avatar Jan 06 '16 06:01 chokh1443

@nealterrell is this still an issue now with the server rewrite?

Saintis avatar Apr 14 '18 22:04 Saintis