diff --git a/common/models/user.json b/common/models/user.json index c3cb375b11..1f3af30fa8 100644 --- a/common/models/user.json +++ b/common/models/user.json @@ -8,7 +8,12 @@ "type": "string", "lowercase": true, "trim": true, - "sparse": true + "index": { + "mongodb": { + "unique": true, + "sparse": true + } + } }, "password": "string", "facebook": "string",