stores lowercase email for gravatar
parent
98f2abe767
commit
1dcbe0ec97
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue