summaryrefslogtreecommitdiff
path: root/users/app/designs/user
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-01-17 15:09:58 +0100
committerAzul <azul@leap.se>2013-01-17 15:16:53 +0100
commita8ec73a0307924610023525786bb3a9eb8b173e1 (patch)
tree16d937bfea4d18a39aad1eec86edfd4f6467d708 /users/app/designs/user
parent7f7ba4f3d72104d67e9ecf839c9688c0580d4063 (diff)
unit tests passing
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);
});