v3: remove trimming and lowercase from fields that must be unique

This commit is contained in:
Matteo Pagliazzi
2016-05-04 23:43:04 +02:00
parent e5e4bb5823
commit bb2dd8ca08
-3
View File
@@ -30,13 +30,10 @@ export let schema = new Schema({
local: {
email: {
type: String,
trim: true,
lowercase: true,
validate: [validator.isEmail, shared.i18n.t('invalidEmail')], // TODO translate error messages here, use preferences.language?
},
username: {
type: String,
trim: true,
},
// Store a lowercase version of username to check for duplicates
lowerCaseUsername: String,