summaryrefslogtreecommitdiff
path: root/users/app/designs/user
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-01-16 16:52:35 +0100
committerAzul <azul@leap.se>2013-01-16 16:52:35 +0100
commit7f7ba4f3d72104d67e9ecf839c9688c0580d4063 (patch)
treed0f4fbe470c0971d86b8cc58fbe73c1a29ba06f3 /users/app/designs/user
parentee2ea4ac8f4c6b0c3b09be6ed49e7a1faec7a9c1 (diff)
incomplete initial changes to make email address just login@domain.tld
This involves a number of other changes like making sure the comparison between aliases and emails still works. Will do that by removing the @domain.tld from aliases as well.
Diffstat (limited to 'users/app/designs/user')
-rw-r--r--users/app/designs/user/by_email_alias.js2
-rw-r--r--users/app/designs/user/by_email_or_alias.js4
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);
});
}