Skip to content

Commit

Permalink
Do not check if an invite token is used already or not to allow stude…
Browse files Browse the repository at this point in the history
…nts clicking links multiple times
  • Loading branch information
AleksTeresh committed Jun 13, 2024
1 parent 81adcfd commit 6bbd473
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/services/EmailInviteService.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ export function getEmailInviteDataForToken(token) {
return knex('emailInvite')
.select()
.where('token', token)
.where('used', false)
// we want to allow users clicking the link multiple times
// therefore we do not check if the token is used
// .where('used', false)
.first()
}

Expand Down

0 comments on commit 6bbd473

Please sign in to comment.