chore(lint): Clean up user model and controller

This commit is contained in:
Blade Barringer
2015-11-21 16:17:42 -06:00
parent 074b3f5079
commit d1839b816e
2 changed files with 1 additions and 2 deletions

View File

@@ -39,8 +39,8 @@ api.registerLocal = {
// 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
let lowerCaseUsername = username.toLowerCase();
email = email.toLowerCase();
let lowerCaseUsername = username.toLowerCase();
// Search for duplicates using lowercase version of username
User.findOne({$or: [

View File

@@ -1,7 +1,6 @@
// User schema and model
import mongoose from 'mongoose';
import shared from '../../../common';
import passwordUtils from '../libs/api-v3/password';
import _ from 'lodash';
import validator from 'validator';
import moment from 'moment';