Another hotfix for people having preferredLanguage set to null. It's preventing people from subscribing because they can't put a User object that does not validate. Still can't repro, but it's happened to a lot of people and continues to happen to new people signing up.

This commit is contained in:
Scott Erickson 2014-12-04 11:55:53 -08:00
parent 86be36621d
commit 7025f0a488

View file

@ -103,7 +103,7 @@ _.extend UserSchema.properties,
emailHash: {type: 'string'}
#Internationalization stuff
preferredLanguage: {type: 'string', 'enum': c.getLanguageCodeArray()}
preferredLanguage: {'enum': [null].concat(c.getLanguageCodeArray())}
signedCLA: c.date({title: 'Date Signed the CLA'})
wizard: c.object {},