add res.respond, fix linting

This commit is contained in:
Matteo Pagliazzi
2015-11-23 13:01:47 +01:00
parent a26f713e18
commit 349122c9a1
7 changed files with 14 additions and 4 deletions

View File

@@ -48,6 +48,7 @@ api.registerLocal = {
if (validationErrors) return next(validationErrors);
let { email, username, password } = req.body;
// Get the lowercase version of username to check that we do not have duplicates
// So we can search for it in the database and then reject the choosen username if 1 or more results are found
email = email.toLowerCase();