Skip to content

Commit bd0c412

Browse files
committed
Use invite: ignore case when checking email
1 parent ac2f70e commit bd0c412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/controllers/invite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ const controller = {
163163
}
164164

165165
// Check for email match if the invitation specifies for it
166-
if (invite.email && invite.email !== req.currentUser?.tokenPayload?.email) {
166+
if (invite.email && invite.email.toLowerCase() !== req.currentUser?.tokenPayload?.email.toLowerCase()) {
167167
throw new Problem(403, {
168168
detail: 'User does not match intended recipient',
169169
instance: req.originalUrl

0 commit comments

Comments
 (0)