We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac2f70e commit bd0c412Copy full SHA for bd0c412
app/src/controllers/invite.js
@@ -163,7 +163,7 @@ const controller = {
163
}
164
165
// Check for email match if the invitation specifies for it
166
- if (invite.email && invite.email !== req.currentUser?.tokenPayload?.email) {
+ if (invite.email && invite.email.toLowerCase() !== req.currentUser?.tokenPayload?.email.toLowerCase()) {
167
throw new Problem(403, {
168
detail: 'User does not match intended recipient',
169
instance: req.originalUrl
0 commit comments