mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 06:23:41 -04:00
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:
parent
86be36621d
commit
7025f0a488
1 changed files with 1 additions and 1 deletions
|
@ -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 {},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue