diff options
Diffstat (limited to 'users/app/designs/user')
-rw-r--r-- | users/app/designs/user/by_email_alias.js | 2 | ||||
-rw-r--r-- | users/app/designs/user/by_email_or_alias.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/users/app/designs/user/by_email_alias.js b/users/app/designs/user/by_email_alias.js index 508a002..dc8021a 100644 --- a/users/app/designs/user/by_email_alias.js +++ b/users/app/designs/user/by_email_alias.js @@ -3,6 +3,6 @@ function(doc) { return; } doc.email_aliases.forEach(function(alias){ - emit(alias.email, 1); + emit(alias.username, 1); }); } diff --git a/users/app/designs/user/by_email_or_alias.js b/users/app/designs/user/by_email_or_alias.js index 71fd0ea..2e5d0a8 100644 --- a/users/app/designs/user/by_email_or_alias.js +++ b/users/app/designs/user/by_email_or_alias.js @@ -3,9 +3,9 @@ function(doc) { return; } if (doc.email) { - emit(doc.email, 1); + emit(doc.login, 1); } doc.email_aliases.forEach(function(alias){ - emit(alias.email, 1); + emit(alias.username, 1); }); } |