diff --git a/src/main/resources/views/user b/src/main/resources/views/user index ca8e133364e12a7571aeab7c2c353d1dccd8a3e8..7fd09f3f4adaaac6b029ff90461dcbbdaa9034ff 100644 --- a/src/main/resources/views/user +++ b/src/main/resources/views/user @@ -4,6 +4,9 @@ "views":{ "all":{ "map":"function(doc) { if (doc.type == 'userdetails') emit(doc.username, doc); }" + }, + "inactive_by_creation": { + "map": "function(doc) {\n if (doc.type == 'userdetails' && doc.activationKey) {\n emit(doc.creation, {_rev: doc._rev});\n }\n}" } } -} \ No newline at end of file +}