Fix auth fail when using uppercase in email

This commit is contained in:
NGPixel
2017-03-12 12:15:29 -04:00
parent 80aa30009b
commit bfcec5a91c
2 changed files with 2 additions and 1 deletions

View File

@@ -115,7 +115,7 @@ router.post('/users/create', (req, res) => {
}
let nUsr = {
email: _.trim(req.body.email),
email: _.toLower(_.trim(req.body.email)),
provider: _.trim(req.body.provider),
password: req.body.password,
name: _.trim(req.body.name)