The uniqueEmail flag is boolean setting that indicates whether unique user email addresses are required.
You can make changes to the /opt/wakari/wakari-server/etc/wakari/config.json
file and add the line:
uniqueEmail: false uniqueEmail: true
In order for this change to take effect you must drop the previous index (frequently called 'email_1') to allow AEN to create a new one with the same name but different configuration. Open the mongo shell and drop the email index by running this command:
db.users.dropIndex("email_1")
Before you make any changes to your Mongo database it is recommended to do a full backup.
If you change the flag without dropping the index you will likely receive this error:
ERROR: command SON([('createIndexes', u'users'), ('indexes', [{unique': False, 'name': u'email_1', 'key': SON([('email', '1')]), 'dropDups': False}])]) on namespace wakari.$cmd failed: Index with name: email_1 already exists with different options [views.py:38]