diff options
author | azul <azul@riseup.net> | 2013-01-17 22:45:39 -0800 |
---|---|---|
committer | azul <azul@riseup.net> | 2013-01-17 22:45:39 -0800 |
commit | 168c36b578d675c99aad62a350aa68cc1b6d1316 (patch) | |
tree | cd1df0a9a7d3f0a9812b512cfb93db0f79b0421f /users/app/designs/user/by_alias.js | |
parent | 19d563e2e2db98ecc5143229f554df6a09bc457e (diff) | |
parent | 27730c7e665ed64e691fdf6dbeebc39c8bfbbc4b (diff) |
Merge pull request #18 from leapcode/feature/fixed-email-address
make email address just login@domain.tld
Diffstat (limited to 'users/app/designs/user/by_alias.js')
-rw-r--r-- | users/app/designs/user/by_alias.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/users/app/designs/user/by_alias.js b/users/app/designs/user/by_alias.js new file mode 100644 index 0000000..dc8021a --- /dev/null +++ b/users/app/designs/user/by_alias.js @@ -0,0 +1,8 @@ +function(doc) { + if (doc.type != 'User') { + return; + } + doc.email_aliases.forEach(function(alias){ + emit(alias.username, 1); + }); +} |