stores lowercase email for gravatar

pull/2/head
rockaBe 2014-03-11 01:17:53 +01:00 committed by Bernd
parent 98f2abe767
commit 1dcbe0ec97
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ var bcrypt = require('bcrypt-nodejs');
var crypto = require('crypto');
var userSchema = new mongoose.Schema({
email: { type: String, unique: true },
email: { type: String, unique: true, lowercase: true },
password: String,
facebook: String,