diff options
author | Akshay <[email protected]> | 2024-11-15 21:25:27 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2024-11-15 21:25:27 +0000 |
commit | c5cd65eba355e66589298cbe88fe3489e0fcebae (patch) | |
tree | 4050c946c4611e88c51efbb61cc44903fca5fd82 /src/invite.js | |
parent | d4a83cb44dc98fe78f9061408137a43049344b1d (diff) |
invalidate registered tokens properly
Diffstat (limited to 'src/invite.js')
-rw-r--r-- | src/invite.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invite.js b/src/invite.js index 0f6624c..7e357ac 100644 --- a/src/invite.js +++ b/src/invite.js | |||
@@ -11,7 +11,7 @@ const validateInviteToken = async (req, res, next) => { | |||
11 | } | 11 | } |
12 | 12 | ||
13 | const invite = db | 13 | const invite = db |
14 | .query("SELECT * FROM invites WHERE token = $token AND usedAt IS null") | 14 | .query("SELECT * FROM invites WHERE token = $token") |
15 | .get({ token }); | 15 | .get({ token }); |
16 | 16 | ||
17 | if (!invite) { | 17 | if (!invite) { |