From 34c6874a59d02300a6d954f0c60fa8b5bd14aec3 Mon Sep 17 00:00:00 2001 From: Kiesia Carmine Date: Wed, 17 Aug 2016 19:59:49 +0200 Subject: [PATCH] lowercase user email parameter --- .../review-bulk-allocation-page.coffee | 2 +- .../review-bulk-invite-members-page.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/review-bulk-allocation-page/review-bulk-allocation-page.coffee b/app/components/review-bulk-allocation-page/review-bulk-allocation-page.coffee index d3a500c2..96cc5ddc 100644 --- a/app/components/review-bulk-allocation-page/review-bulk-allocation-page.coffee +++ b/app/components/review-bulk-allocation-page/review-bulk-allocation-page.coffee @@ -76,7 +76,7 @@ module.exports = _.each $scope.newMembers, (newMember) -> newMember.status = 'pending' - membershipParams = {group_id: groupId, email: newMember.email} + membershipParams = {group_id: groupId, email: newMember.email.toLowerCase()} Records.memberships.remote.create(membershipParams).then (data) -> newMembership = data.memberships[0] if newMember.allocation_amount > 0 diff --git a/app/components/review-bulk-invite-members-page/review-bulk-invite-members-page.coffee b/app/components/review-bulk-invite-members-page/review-bulk-invite-members-page.coffee index 4917dcbc..7f7af299 100644 --- a/app/components/review-bulk-invite-members-page/review-bulk-invite-members-page.coffee +++ b/app/components/review-bulk-invite-members-page/review-bulk-invite-members-page.coffee @@ -63,7 +63,7 @@ module.exports = _.each $scope.newMembers, (newMember) -> newMember.status = 'pending' - params = {group_id: groupId, email: newMember.email} + params = {group_id: groupId, email: newMember.email.toLowerCase()} Records.memberships.remote.create(params).then (data) -> newMembership = data.memberships[0] Records.memberships.invite(newMembership).then ->