summaryrefslogtreecommitdiff
path: root/users/app/designs/user
diff options
context:
space:
mode:
Diffstat (limited to 'users/app/designs/user')
-rw-r--r--users/app/designs/user/by_alias.js (renamed from users/app/designs/user/by_email_alias.js)0
-rw-r--r--users/app/designs/user/by_login_or_alias.js (renamed from users/app/designs/user/by_email_or_alias.js)4
2 files changed, 1 insertions, 3 deletions
diff --git a/users/app/designs/user/by_email_alias.js b/users/app/designs/user/by_alias.js
index dc8021a..dc8021a 100644
--- a/users/app/designs/user/by_email_alias.js
+++ b/users/app/designs/user/by_alias.js
diff --git a/users/app/designs/user/by_email_or_alias.js b/users/app/designs/user/by_login_or_alias.js
index 2e5d0a8..2d2096c 100644
--- a/users/app/designs/user/by_email_or_alias.js
+++ b/users/app/designs/user/by_login_or_alias.js
@@ -2,9 +2,7 @@ function(doc) {
if (doc.type != 'User') {
return;
}
- if (doc.email) {
- emit(doc.login, 1);
- }
+ emit(doc.login, 1);
doc.email_aliases.forEach(function(alias){
emit(alias.username, 1);
});