From 7f7ba4f3d72104d67e9ecf839c9688c0580d4063 Mon Sep 17 00:00:00 2001 From: Azul Date: Wed, 16 Jan 2013 16:52:35 +0100 Subject: 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. --- users/app/designs/user/by_email_alias.js | 2 +- users/app/designs/user/by_email_or_alias.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'users/app/designs/user') 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); }); } -- cgit v1.2.3