Skip to content

Commit 6bbd473

Browse files
committed
Do not check if an invite token is used already or not to allow students clicking links multiple times
1 parent 81adcfd commit 6bbd473

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backend/src/services/EmailInviteService.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ export function getEmailInviteDataForToken(token) {
5151
return knex('emailInvite')
5252
.select()
5353
.where('token', token)
54-
.where('used', false)
54+
// we want to allow users clicking the link multiple times
55+
// therefore we do not check if the token is used
56+
// .where('used', false)
5557
.first()
5658
}
5759

0 commit comments

Comments
 (0)